Class TransformNavigableMap<K,V,KW,VW>
java.lang.Object
com.aoapps.collections.transformers.TransformMap<K,V,KW,VW>
com.aoapps.collections.transformers.TransformSortedMap<K,V,KW,VW>
com.aoapps.collections.transformers.TransformNavigableMap<K,V,KW,VW>
- All Implemented Interfaces:
Map<K,
,V> NavigableMap<K,
,V> SortedMap<K,
V>
public class TransformNavigableMap<K,V,KW,VW>
extends TransformSortedMap<K,V,KW,VW>
implements NavigableMap<K,V>
Wraps a
NavigableMap
, with optional type conversion.- Author:
- AO Industries, Inc.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.aoapps.collections.transformers.TransformMap
TransformMap.TransformEntry<K,
V, KW, VW> -
Field Summary
Fields inherited from class com.aoapps.collections.transformers.TransformMap
keyTransformer, valueTransformer
-
Constructor Summary
ModifierConstructorDescriptionprotected
TransformNavigableMap
(NavigableMap<KW, VW> wrapped, Transformer<K, KW> keyTransformer, Transformer<V, VW> valueTransformer) -
Method Summary
Modifier and TypeMethodDescriptionceilingEntry
(K key) ceilingKey
(K key) floorEntry
(K key) protected NavigableMap
<KW, VW> higherEntry
(K key) lowerEntry
(K key) static <K,
V> TransformNavigableMap <K, V, K, V> of
(NavigableMap<K, V> map) static <K,
V, KW, VW>
TransformNavigableMap<K, V, KW, VW> of
(NavigableMap<KW, VW> map, Transformer<K, KW> keyTransformer, Transformer<V, VW> valueTransformer) Wraps a navigable map.Methods inherited from class com.aoapps.collections.transformers.TransformSortedMap
comparator, firstKey, headMap, lastKey, of, of, subMap, tailMap
Methods inherited from class com.aoapps.collections.transformers.TransformMap
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, of, of, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, 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.NavigableMap
headMap, subMap, tailMap
-
Constructor Details
-
Method Details
-
getWrapped
- Overrides:
getWrapped
in classTransformSortedMap<K,
V, KW, VW>
-
lowerEntry
- Specified by:
lowerEntry
in interfaceNavigableMap<K,
V>
-
lowerKey
- Specified by:
lowerKey
in interfaceNavigableMap<K,
V>
-
floorEntry
- Specified by:
floorEntry
in interfaceNavigableMap<K,
V>
-
floorKey
- Specified by:
floorKey
in interfaceNavigableMap<K,
V>
-
ceilingEntry
- Specified by:
ceilingEntry
in interfaceNavigableMap<K,
V>
-
ceilingKey
- Specified by:
ceilingKey
in interfaceNavigableMap<K,
V>
-
higherEntry
- Specified by:
higherEntry
in interfaceNavigableMap<K,
V>
-
higherKey
- Specified by:
higherKey
in interfaceNavigableMap<K,
V>
-
firstEntry
- Specified by:
firstEntry
in interfaceNavigableMap<K,
V>
-
lastEntry
- Specified by:
lastEntry
in interfaceNavigableMap<K,
V>
-
pollFirstEntry
- Specified by:
pollFirstEntry
in interfaceNavigableMap<K,
V>
-
pollLastEntry
- Specified by:
pollLastEntry
in interfaceNavigableMap<K,
V>
-
descendingMap
- Specified by:
descendingMap
in interfaceNavigableMap<K,
V>
-
descendingKeySet
- Specified by:
descendingKeySet
in interfaceNavigableMap<K,
V>
-
subMap
public TransformNavigableMap<K,V, subMapKW, VW> (K fromKey, boolean fromInclusive, K toKey, boolean toInclusive) - Specified by:
subMap
in interfaceNavigableMap<K,
V>
-
headMap
- Specified by:
headMap
in interfaceNavigableMap<K,
V>
-
tailMap
- Specified by:
tailMap
in interfaceNavigableMap<K,
V>