Package com.tangosol.util
Class ConverterCollections.ConverterSortedMap<FK,TK,FV,TV>
java.lang.Object
com.tangosol.util.ConverterCollections.ConverterMap<FK,TK,FV,TV>
com.tangosol.util.ConverterCollections.ConverterSortedMap<FK,TK,FV,TV>
- Type Parameters:
FK
- the type of the keys in the underlying SortedSetTK
- the type that the keys should be converted toFV
- the type of the values in the underlying SortedSetTV
- the type that the values should be converted to
- All Implemented Interfaces:
Serializable
,Map<TK,
,TV> SequencedMap<TK,
,TV> SortedMap<TK,
TV>
- Enclosing class:
ConverterCollections
public static class ConverterCollections.ConverterSortedMap<FK,TK,FV,TV>
extends ConverterCollections.ConverterMap<FK,TK,FV,TV>
implements SortedMap<TK,TV>, Serializable
A Converter SortedMap views an underlying SortedMap through a set of
key and value Converters.
- See Also:
-
Nested Class Summary
-
Field Summary
Fields inherited from class com.tangosol.util.ConverterCollections.ConverterMap
m_convKeyDown, m_convKeyUp, m_convValDown, m_convValUp, m_map, m_set
-
Constructor Summary
-
Method Summary
Methods inherited from class com.tangosol.util.ConverterCollections.ConverterMap
clear, containsKey, containsValue, entrySet, equals, get, getConverterKeyDown, getConverterKeyUp, getConverterValueDown, getConverterValueUp, getMap, hashCode, instantiateCollection, instantiateEntrySet, instantiateMap, instantiateSet, isEmpty, keySet, put, putAll, remove, size, subMap, toString, values
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, equals, forEach, get, getOrDefault, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size
Methods inherited from interface java.util.SequencedMap
firstEntry, lastEntry, pollFirstEntry, pollLastEntry, sequencedEntrySet, sequencedKeySet, sequencedValues
-
Constructor Details
-
ConverterSortedMap
public ConverterSortedMap(SortedMap<FK, FV> map, Converter<FK, TK> convKeyUp, Converter<TK, FK> convKeyDown, Converter<FV, TV> convValUp, Converter<TV, FV> convValDown) Constructor.- Parameters:
map
- the underlying SortedMapconvKeyUp
- the Converter to view the underlying SortedMap's keys throughconvKeyDown
- the Converter to use to pass keys down to the underlying SortedMapconvValUp
- the Converter to view the underlying SortedMap's values throughconvValDown
- the Converter to use to pass values down to the underlying SortedMap
-
-
Method Details
-
comparator
- Specified by:
comparator
in interfaceSortedMap<FK,
TK>
-
subMap
-
headMap
-
tailMap
-
firstKey
-
lastKey
-
instantiateSortedMap
protected SortedMap<TK,TV> instantiateSortedMap(SortedMap<FK, FV> map, Converter<FK, TK> convKeyUp, Converter<TK, FK> convKeyDown, Converter<FV, TV> convValUp, Converter<TV, FV> convValDown) Create a Converter SortedMap.- Parameters:
map
- the underlying SortedMapconvKeyUp
- the Converter to view the underlying SortedMap's keys throughconvKeyDown
- the Converter to use to pass keys down to the underlying SortedMapconvValUp
- the Converter to view the underlying SortedMap's values throughconvValDown
- the Converter to use to pass values down to the underlying SortedMap- Returns:
- a Converter SortedMap
-
getSortedMap
Return the underlying SortedMap.- Returns:
- the underlying SortedMap
-