The returned set will throw an IllegalArgumentException on an attempt to insert an element outside its range. @param fromElement low endpoint (inclusive) of the returned set @param toElement high endpoint (exclusive) of the returned set @return a view of the portion of this set whose elements range fromfromElement, inclusive, to toElement, exclusive @throws ClassCastException if fromElement andtoElement cannot be compared to one another using this set's comparator (or, if the set has no comparator, using natural ordering). Implementations may, but are not required to, throw this exception if fromElement or toElement cannot be compared to elements currently in the set. @throws NullPointerException if fromElement ortoElement is null and this set does not permit null elements @throws IllegalArgumentException if fromElement isgreater than toElement; or if this set itself has a restricted range, and fromElement or toElement lies outside the bounds of the range
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|