Collections.SortedSet.subSet()

Signature

Object subSet ( Object set, Object fromElement ,Object toElement )

Domain

action

Description

Returns a view of the portion of this set whose elements range from fromElement, inclusive, to toElement, exclusive. (If fromElement and toElement are equal, the returned set is empty.)

Parameters

NameTypeDescription
setObjectInstance of SortedSet
fromElementObjectLow endpoint (inclusive) of the returned set
toElementObjectHigh endpoint (exclusive) of the returned set

Returns

TypeDescription
ObjectA view of the portion of this set whose elements range from fromElement, inclusive, to toElement, exclusive

Cautions

none