Collections.SortedMap.subMap()

Signature

Object subMap ( Object map, Object fromKey ,Object toKey )

Domain

action

Description

Returns a view of the portion of this map whose keys range from fromKey, inclusive, to toKey, exclusive. (If fromKey and toKey are equal, the returned map is empty.)

Parameters

NameTypeDescription
mapObjectInstance of SortedMap
fromKeyObjectLow endpoint (inclusive) of the keys in the returned map
toKeyObjectHigh endpoint (exclusive) of the keys in the returned map

Returns

TypeDescription
ObjectInstance of SortedSet, a view of the portion of this map whose keys range from fromKey, inclusive, to toKey, exclusive

Cautions

none