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>
,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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.tangosol.util.ConverterCollections.ConverterMap
m_convKeyDown, m_convKeyUp, m_convValDown, m_convValUp, m_map, m_set
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Comparator<TK>
comparator()
TK
firstKey()
SortedMap<FK,FV>
getSortedMap()
Return the underlying SortedMap.SortedMap<TK,TV>
headMap(TK toKey)
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.TK
lastKey()
SortedMap<TK,TV>
subMap(TK fromKey, TK toKey)
SortedMap<TK,TV>
tailMap(TK fromKey)
-
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
-
-
-
-
Constructor Detail
-
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 Detail
-
comparator
public Comparator<TK> comparator()
- Specified by:
comparator
in interfaceSortedMap<FK,TK>
-
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
-
-