|
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.ConverterCollections.ConverterCollection
com.tangosol.util.ConverterCollections.ConverterSet
com.tangosol.util.ConverterCollections.ConverterSortedSet
public static class ConverterCollections.ConverterSortedSet
A Converter SortedSet views an underlying SortedSet through a Converter.
Field Summary |
---|
Fields inherited from class com.tangosol.util.ConverterCollections.ConverterCollection |
---|
m_col, m_convDown, m_convUp |
Constructor Summary | |
---|---|
ConverterCollections.ConverterSortedSet(SortedSet set,
Converter convUp,
Converter convDown)
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. |
protected SortedSet |
instantiateSortedSet(SortedSet set,
Converter convUp,
Converter convDown)
Create a Converter SortedSet. |
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.ConverterCollections.ConverterCollection |
---|
add, addAll, clear, contains, containsAll, equals, instantiateCollection, instantiateIterator, invalidate, 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 ConverterCollections.ConverterSortedSet(SortedSet set, Converter convUp, Converter convDown)
set
- the underlying SortedSetconvUp
- the Converter from the underlying SortedSetconvDown
- the Converter to the underlying 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
- if the sorted set is emptypublic Object last()
last
in interface SortedSet
NoSuchElementException
- if the sorted set is emptyprotected SortedSet instantiateSortedSet(SortedSet set, Converter convUp, Converter convDown)
set
- the underlying SortedSetconvUp
- the Converter to view the underlying SortedSet
throughconvDown
- the Converter to pass items down to the underlying
SortedSet through
|
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 |