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>
,SequencedCollection<T>
,SequencedSet<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:
-
Field Summary
Fields inherited from class com.tangosol.util.ConverterCollections.ConverterCollection
m_col, m_convDown, m_convUp
-
Constructor Summary
-
Method Summary
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
addFirst, addLast, getFirst, getLast, removeFirst, removeLast, reversed, spliterator
-
Constructor Details
-
ConverterSortedSet
Constructor.- Parameters:
set
- the underlying SortedSetconvUp
- the Converter from the underlying SortedSetconvDown
- the Converter to the underlying SortedSet
-
-
Method Details
-
comparator
- Specified by:
comparator
in interfaceSortedSet<F>
-
subSet
-
headSet
-
tailSet
-
first
-
last
-
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
-
getSortedSet
Return the underlying SortedSet.- Returns:
- the underlying SortedSet
-