The returned map will throw an IllegalArgumentException on an attempt to insert a key outside its range. @param fromKey low endpoint (inclusive) of the keys in the returned map @param toKey high endpoint (exclusive) of the keys in the returned map @return a view of the portion of this map whose keys range fromfromKey, inclusive, to toKey, exclusive @throws ClassCastException if fromKey and toKeycannot be compared to one another using this map's comparator (or, if the map has no comparator, using natural ordering). Implementations may, but are not required to, throw this exception if fromKey or toKey cannot be compared to keys currently in the map. @throws NullPointerException if fromKey or toKeyis null and this map does not permit null keys @throws IllegalArgumentException if fromKey is greater thantoKey; or if this map itself has a restricted range, and fromKey or toKey lies outside the bounds of the range
|
|
|
|
|
|
|
|