- java.lang.Object
-
- swim.structure.collections.ValueMap<K,V>
-
- swim.structure.collections.ValueIterableMap<K,V>
-
- swim.structure.collections.ValueOrderedMap<K,V>
-
- All Implemented Interfaces:
Iterable<Map.Entry<K,V>>
,Map<K,V>
,SortedMap<K,V>
,IterableMap<K,V>
,OrderedMap<K,V>
- Direct Known Subclasses:
MapDataView
,ValueReducedMap
public class ValueOrderedMap<K,V> extends ValueIterableMap<K,V> implements OrderedMap<K,V>
-
-
Constructor Summary
Constructors Constructor Description ValueOrderedMap(OrderedMap<? extends Value,? extends Value> inner, Form<K> keyForm, Form<V> valueForm)
-
Method Summary
-
Methods inherited from class swim.structure.collections.ValueIterableMap
keyIterator, valueIterator
-
Methods inherited from class swim.structure.collections.ValueMap
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keyForm, keySet, put, putAll, remove, size, toString, valueForm, values
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Methods inherited from interface swim.util.OrderedMap
clear, containsKey, containsValue, entrySet, get, isEmpty, keyIterator, keySet, put, putAll, remove, size, valueIterator, values
-
-
-
-
Method Detail
-
inner
public OrderedMap<Value,Value> inner()
- Overrides:
inner
in classValueIterableMap<K,V>
-
keyForm
public <K2> ValueOrderedMap<K2,V> keyForm(Form<K2> keyForm)
- Overrides:
keyForm
in classValueIterableMap<K,V>
-
keyClass
public <K2> ValueOrderedMap<K2,V> keyClass(Class<K2> keyClass)
- Overrides:
keyClass
in classValueIterableMap<K,V>
-
valueForm
public <V2> ValueOrderedMap<K,V2> valueForm(Form<V2> valueForm)
- Overrides:
valueForm
in classValueIterableMap<K,V>
-
valueClass
public <V2> ValueOrderedMap<K,V2> valueClass(Class<V2> valueClass)
- Overrides:
valueClass
in classValueIterableMap<K,V>
-
indexOf
public int indexOf(Object keyObject)
- Specified by:
indexOf
in interfaceOrderedMap<K,V>
-
getEntry
public Map.Entry<K,V> getEntry(Object keyObject)
- Specified by:
getEntry
in interfaceOrderedMap<K,V>
-
getIndex
public Map.Entry<K,V> getIndex(int index)
- Specified by:
getIndex
in interfaceOrderedMap<K,V>
-
firstEntry
public Map.Entry<K,V> firstEntry()
- Specified by:
firstEntry
in interfaceOrderedMap<K,V>
-
firstKey
public K firstKey()
-
firstValue
public V firstValue()
- Specified by:
firstValue
in interfaceOrderedMap<K,V>
-
lastKey
public K lastKey()
-
lastValue
public V lastValue()
- Specified by:
lastValue
in interfaceOrderedMap<K,V>
-
nextEntry
public Map.Entry<K,V> nextEntry(Object keyObject)
- Specified by:
nextEntry
in interfaceOrderedMap<K,V>
-
nextValue
public V nextValue(Object keyObject)
- Specified by:
nextValue
in interfaceOrderedMap<K,V>
-
previousEntry
public Map.Entry<K,V> previousEntry(Object keyObject)
- Specified by:
previousEntry
in interfaceOrderedMap<K,V>
-
previousKey
public K previousKey(Object keyObject)
- Specified by:
previousKey
in interfaceOrderedMap<K,V>
-
previousValue
public V previousValue(Object keyObject)
- Specified by:
previousValue
in interfaceOrderedMap<K,V>
-
headMap
public OrderedMap<K,V> headMap(K toKeyObject)
-
tailMap
public OrderedMap<K,V> tailMap(K fromKeyObject)
-
subMap
public OrderedMap<K,V> subMap(K fromKeyObject, K toKeyObject)
-
iterator
public OrderedMapCursor<K,V> iterator()
- Specified by:
iterator
in interfaceIterable<K>
- Specified by:
iterator
in interfaceIterableMap<K,V>
- Specified by:
iterator
in interfaceOrderedMap<K,V>
- Overrides:
iterator
in classValueIterableMap<K,V>
-
comparator
public Comparator<? super K> comparator()
- Specified by:
comparator
in interfaceOrderedMap<K,V>
- Specified by:
comparator
in interfaceSortedMap<K,V>
-
-