Package com.tangosol.util
Class ConverterCollections.ConverterSortedSet<F,T>
- java.lang.Object
-
- com.tangosol.util.ConverterCollections.ConverterCollection<F,T>
-
- com.tangosol.util.ConverterCollections.ConverterSet<F,T>
-
- com.tangosol.util.ConverterCollections.ConverterSortedSet<F,T>
-
- Type Parameters:
F
- the type of elements in the underlying SortedSetT
- the type that the elements should be converted to
- All Implemented Interfaces:
Serializable
,Iterable<T>
,Collection<T>
,Set<T>
,SortedSet<T>
- Enclosing class:
- ConverterCollections
public static class ConverterCollections.ConverterSortedSet<F,T> extends ConverterCollections.ConverterSet<F,T> implements SortedSet<T>, Serializable
A Converter SortedSet views an underlying SortedSet through a Converter.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.tangosol.util.ConverterCollections.ConverterCollection
m_col, m_convDown, m_convUp
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Comparator<T>
comparator()
T
first()
SortedSet<F>
getSortedSet()
Return the underlying SortedSet.SortedSet<T>
headSet(T toElement)
protected SortedSet<T>
instantiateSortedSet(SortedSet<F> set, Converter<F,T> convUp, Converter<T,F> convDown)
Create a Converter SortedSet.T
last()
SortedSet<T>
subSet(T fromElement, T toElement)
SortedSet<T>
tailSet(T 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 class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
-
Methods inherited from interface java.util.SortedSet
spliterator
-
-
-
-
Method Detail
-
comparator
public Comparator<T> comparator()
- Specified by:
comparator
in interfaceSortedSet<F>
-
instantiateSortedSet
protected SortedSet<T> instantiateSortedSet(SortedSet<F> set, Converter<F,T> convUp, Converter<T,F> convDown)
Create a Converter SortedSet.- Parameters:
set
- the underlying SortedSetconvUp
- the Converter to view the underlying SortedSet throughconvDown
- the Converter to pass items down to the underlying SortedSet through- Returns:
- a Converter SortedSet
-
-