|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.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(java.util.SortedSet set, Converter convUp, Converter convDown) Constructor. |
Method Summary | |
---|---|
java.util.Comparator |
comparator() Returns the comparator associated with this sorted set, or null if it uses its elements' natural ordering. |
java.lang.Object |
first() Returns the first (lowest) element currently in this sorted set. |
java.util.SortedSet |
getSortedSet() Return the underlying SortedSet. |
java.util.SortedSet |
headSet(java.lang.Object toElement) Returns a view of the portion of this sorted set whose elements are strictly less than toElement. |
protected java.util.SortedSet |
instantiateSortedSet(java.util.SortedSet set, Converter convUp, Converter convDown) Create a Converter SortedSet. |
java.lang.Object |
last() Returns the last (highest) element currently in this sorted set. |
java.util.SortedSet |
subSet(java.lang.Object fromElement, java.lang.Object toElement) Returns a view of the portion of this sorted set whose elements range from fromElement, inclusive, to toElement, exclusive. |
java.util.SortedSet |
tailSet(java.lang.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.ConverterSet |
---|
equals, hashCode |
Methods inherited from class com.tangosol.util.ConverterCollections.ConverterCollection |
---|
add, addAll, clear, contains, containsAll, getCollection, getConverterDown, getConverterUp, 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(java.util.SortedSet set, Converter convUp, Converter convDown)
set
- the underlying SortedSetconvUp
- the Converter from the underlying SortedSetconvDown
- the Converter to the underlying SortedSetMethod Detail |
---|
public java.util.Comparator comparator()
comparator
in interface java.util.SortedSet
public java.util.SortedSet subSet(java.lang.Object fromElement, java.lang.Object toElement)
Obeys the general contract of SortedSet.subSet.
subSet
in interface java.util.SortedSet
fromElement
- low endpoint (inclusive) of the subSettoElement
- high endpoint (exclusive) of the subSetpublic java.util.SortedSet headSet(java.lang.Object toElement)
Obeys the general contract of SortedSet.headSet.
headSet
in interface java.util.SortedSet
toElement
- high endpoint (exclusive) of the headSetpublic java.util.SortedSet tailSet(java.lang.Object fromElement)
Obeys the general contract of SortedSet.tailSet.
tailSet
in interface java.util.SortedSet
fromElement
- low endpoint (inclusive) of the tailSetpublic java.lang.Object first()
first
in interface java.util.SortedSet
java.util.NoSuchElementException
- if the sorted set is emptypublic java.lang.Object last()
last
in interface java.util.SortedSet
java.util.NoSuchElementException
- if the sorted set is emptyprotected java.util.SortedSet instantiateSortedSet(java.util.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 throughpublic java.util.SortedSet getSortedSet()
|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |