The returned map will throw an {@code IllegalArgumentException}on an attempt to insert a key outside of its range, or to construct a submap either of whose endpoints lie outside its range. @param fromKey low endpoint of the keys in the returned map @param fromInclusive {@code true} if the low endpointis to be included in the returned view @param toKey high endpoint of the keys in the returned map @param toInclusive {@code true} if the high endpointis to be included in the returned view @return a view of the portion of this map whose keys range from{@code fromKey} to {@code toKey} @throws ClassCastException if {@code fromKey} and {@code toKey}cannot 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 {@code fromKey} or {@code toKey}cannot be compared to keys currently in the map. @throws NullPointerException if {@code fromKey} or {@code toKey}is null and this map does not permit null keys @throws IllegalArgumentException if {@code fromKey} is greater than{@code toKey}; or if this map itself has a restricted range, and {@code fromKey} or {@code toKey} liesoutside the bounds of the range
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|