Class TransformSortedMap<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>
- Direct Known Subclasses:
TransformNavigableMap
public class TransformSortedMap<K,V,KW,VW>
extends TransformMap<K,V,KW,VW>
implements SortedMap<K,V>
Wraps a
SortedMap
, 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
TransformSortedMap
(SortedMap<KW, VW> wrapped, Transformer<K, KW> keyTransformer, Transformer<V, VW> valueTransformer) -
Method Summary
Modifier and TypeMethodDescriptionfirstKey()
lastKey()
static <K,
V> TransformSortedMap <K, V, K, V> static <K,
V, KW, VW>
TransformSortedMap<K, V, KW, VW> of
(SortedMap<KW, VW> map, Transformer<K, KW> keyTransformer, Transformer<V, VW> valueTransformer) Wraps a sorted map.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
-
Constructor Details
-
TransformSortedMap
protected TransformSortedMap(SortedMap<KW, VW> wrapped, Transformer<K, KW> keyTransformer, Transformer<V, VW> valueTransformer)
-
-
Method Details
-
of
public static <K,V, TransformSortedMap<K,KW, VW> V, ofKW, VW> (SortedMap<KW, VW> map, Transformer<K, KW> keyTransformer, Transformer<V, VW> valueTransformer) Wraps a sorted map.- If the given map is a
NavigableMap
, then will return aTransformNavigableMap
.
- See Also:
- If the given map is a
-
of
- See Also:
-
getWrapped
- Overrides:
getWrapped
in classTransformMap<K,
V, KW, VW>
-
comparator
- Specified by:
comparator
in interfaceSortedMap<K,
V>
-
subMap
-
headMap
-
tailMap
-
firstKey
-
lastKey
-