public boolean contains ( int start , int end ) { if ( start < MIN_VALUE || start > MAX_VALUE ) { throw new IllegalArgumentException ( "Invalid code point U+" + Utility . hex ( start , 6 ) ) ; } if ( end < MIN_VALUE || end > MAX_VALUE ) { throw new IllegalArgumentException ( "Invalid code point U+" + Utility . hex ( end , 6 ) ) ; } //int i = -1; //while (true) { // if (start < list[++i]) break; //} int i = findCodePoint ( start ) ; return ( ( i & 1 ) != 0 && end < list [ i ] ) ; }
Returns true if this set contains every character of the given range .