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
ConstructorsModifierConstructorDescriptionprotectedTransformNavigableMap(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, tailMapMethods 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, valuesMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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, sizeMethods inherited from interface java.util.NavigableMap
headMap, subMap, tailMap
-
Constructor Details
-
Method Details
-
getWrapped
- Overrides:
getWrappedin classTransformSortedMap<K,V, KW, VW>
-
lowerEntry
- Specified by:
lowerEntryin interfaceNavigableMap<K,V>
-
lowerKey
- Specified by:
lowerKeyin interfaceNavigableMap<K,V>
-
floorEntry
- Specified by:
floorEntryin interfaceNavigableMap<K,V>
-
floorKey
- Specified by:
floorKeyin interfaceNavigableMap<K,V>
-
ceilingEntry
- Specified by:
ceilingEntryin interfaceNavigableMap<K,V>
-
ceilingKey
- Specified by:
ceilingKeyin interfaceNavigableMap<K,V>
-
higherEntry
- Specified by:
higherEntryin interfaceNavigableMap<K,V>
-
higherKey
- Specified by:
higherKeyin interfaceNavigableMap<K,V>
-
firstEntry
- Specified by:
firstEntryin interfaceNavigableMap<K,V>
-
lastEntry
- Specified by:
lastEntryin interfaceNavigableMap<K,V>
-
pollFirstEntry
- Specified by:
pollFirstEntryin interfaceNavigableMap<K,V>
-
pollLastEntry
- Specified by:
pollLastEntryin interfaceNavigableMap<K,V>
-
descendingMap
- Specified by:
descendingMapin interfaceNavigableMap<K,V>
-
descendingKeySet
- Specified by:
descendingKeySetin interfaceNavigableMap<K,V>
-
subMap
public TransformNavigableMap<K,V, subMapKW, VW> (K fromKey, boolean fromInclusive, K toKey, boolean toInclusive) - Specified by:
subMapin interfaceNavigableMap<K,V>
-
headMap
- Specified by:
headMapin interfaceNavigableMap<K,V>
-
tailMap
- Specified by:
tailMapin interfaceNavigableMap<K,V>
