|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tangosol.util.Base
com.tangosol.util.RestrictedCollections.RestrictedCollection
com.tangosol.util.RestrictedCollections.RestrictedSet
com.tangosol.util.RestrictedCollections.RestrictedSortedSet
public static class RestrictedCollections.RestrictedSortedSet
A restricted Set that requires its contents to be of a specified class.
Field Summary |
---|
Fields inherited from class com.tangosol.util.RestrictedCollections.RestrictedCollection |
---|
m_clz, m_col |
Constructor Summary | |
---|---|
RestrictedCollections.RestrictedSortedSet(SortedSet set,
Class clz)
Constructor. |
Method Summary | |
---|---|
Comparator |
comparator()
Returns the comparator associated with this sorted set, or null if it uses its elements' natural ordering. |
Object |
first()
Returns the first (lowest) element currently in this sorted set. |
SortedSet |
headSet(Object toElement)
Returns a view of the portion of this sorted set whose elements are strictly less than toElement. |
Object |
last()
Returns the last (highest) element currently in this sorted set. |
SortedSet |
subSet(Object fromElement,
Object toElement)
Returns a view of the portion of this sorted set whose elements range from fromElement, inclusive, to toElement, exclusive. |
SortedSet |
tailSet(Object fromElement)
Returns a view of the portion of this sorted set whose elements are greater than or equal to fromElement. |
Methods inherited from class com.tangosol.util.RestrictedCollections.RestrictedCollection |
---|
add, addAll, checkObject, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toString |
Methods inherited from interface java.util.Set |
---|
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
Constructor Detail |
---|
public RestrictedCollections.RestrictedSortedSet(SortedSet set, Class clz)
set
- the underlying SortedSetclz
- the class of objects that may be stored in the
SortedSetMethod Detail |
---|
public Comparator comparator()
comparator
in interface SortedSet
public SortedSet subSet(Object fromElement, Object toElement)
Obeys the general contract of SortedSet.subSet.
subSet
in interface SortedSet
fromElement
- low endpoint (inclusive) of the subSettoElement
- high endpoint (exclusive) of the subSet
public SortedSet headSet(Object toElement)
Obeys the general contract of SortedSet.headSet.
headSet
in interface SortedSet
toElement
- high endpoint (exclusive) of the headSet
public SortedSet tailSet(Object fromElement)
Obeys the general contract of SortedSet.tailSet.
tailSet
in interface SortedSet
fromElement
- low endpoint (inclusive) of the tailSet
public Object first()
first
in interface SortedSet
NoSuchElementException
- sorted set is emptypublic Object last()
last
in interface SortedSet
NoSuchElementException
- sorted set is empty
|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |