F - the type of elements in the underlying SortedSetT - the type that the elements should be converted topublic static class ConverterCollections.ConverterSortedSet<F,T> extends ConverterCollections.ConverterSet<F,T> implements SortedSet<T>, Serializable
m_col, m_convDown, m_convUp| Constructor and Description |
|---|
ConverterSortedSet(SortedSet<F> set,
Converter<F,T> convUp,
Converter<T,F> convDown)
Constructor.
|
| Modifier and Type | Method and 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) |
equals, hashCodeadd, addAll, clear, contains, containsAll, getCollection, getConverterDown, getConverterUp, instantiateCollection, instantiateIterator, invalidate, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitspliteratoradd, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArrayparallelStream, removeIf, streampublic Comparator<T> comparator()
comparator in interface SortedSet<T>protected SortedSet<T> instantiateSortedSet(SortedSet<F> set, Converter<F,T> convUp, Converter<T,F> convDown)
set - the underlying SortedSetconvUp - the Converter to view the underlying SortedSet
throughconvDown - the Converter to pass items down to the underlying
SortedSet through