- 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:
innerin classValueIterableMap<K,V>
-
keyForm
public <K2> ValueOrderedMap<K2,V> keyForm(Form<K2> keyForm)
- Overrides:
keyFormin classValueIterableMap<K,V>
-
keyClass
public <K2> ValueOrderedMap<K2,V> keyClass(Class<K2> keyClass)
- Overrides:
keyClassin classValueIterableMap<K,V>
-
valueForm
public <V2> ValueOrderedMap<K,V2> valueForm(Form<V2> valueForm)
- Overrides:
valueFormin classValueIterableMap<K,V>
-
valueClass
public <V2> ValueOrderedMap<K,V2> valueClass(Class<V2> valueClass)
- Overrides:
valueClassin classValueIterableMap<K,V>
-
indexOf
public int indexOf(Object keyObject)
- Specified by:
indexOfin interfaceOrderedMap<K,V>
-
getEntry
public Map.Entry<K,V> getEntry(Object keyObject)
- Specified by:
getEntryin interfaceOrderedMap<K,V>
-
getIndex
public Map.Entry<K,V> getIndex(int index)
- Specified by:
getIndexin interfaceOrderedMap<K,V>
-
firstEntry
public Map.Entry<K,V> firstEntry()
- Specified by:
firstEntryin interfaceOrderedMap<K,V>
-
firstKey
public K firstKey()
-
firstValue
public V firstValue()
- Specified by:
firstValuein interfaceOrderedMap<K,V>
-
lastKey
public K lastKey()
-
lastValue
public V lastValue()
- Specified by:
lastValuein interfaceOrderedMap<K,V>
-
nextEntry
public Map.Entry<K,V> nextEntry(Object keyObject)
- Specified by:
nextEntryin interfaceOrderedMap<K,V>
-
nextValue
public V nextValue(Object keyObject)
- Specified by:
nextValuein interfaceOrderedMap<K,V>
-
previousEntry
public Map.Entry<K,V> previousEntry(Object keyObject)
- Specified by:
previousEntryin interfaceOrderedMap<K,V>
-
previousKey
public K previousKey(Object keyObject)
- Specified by:
previousKeyin interfaceOrderedMap<K,V>
-
previousValue
public V previousValue(Object keyObject)
- Specified by:
previousValuein 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:
iteratorin interfaceIterable<K>- Specified by:
iteratorin interfaceIterableMap<K,V>- Specified by:
iteratorin interfaceOrderedMap<K,V>- Overrides:
iteratorin classValueIterableMap<K,V>
-
comparator
public Comparator<? super K> comparator()
- Specified by:
comparatorin interfaceOrderedMap<K,V>- Specified by:
comparatorin interfaceSortedMap<K,V>
-
-