public boolean contains ( Object o ) { if ( o instanceof String ) { return set . contains ( ( ( String ) o ) . toLowerCase ( ) ) ; } else { return set . contains ( o ) ; } }
Returns true if this set contains the specified string compared case - insensitively .