Module org.jhotdraw8.icollection
Class ReversedSequencedMapView<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
org.jhotdraw8.icollection.sequenced.ReversedSequencedMapView<K,V>
- Type Parameters:
K- the key typeV- the value type
- All Implemented Interfaces:
Map<K,,V> SequencedMap<K,V>
Provides a reversed view on a
SequencedMap.-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new instance. -
Method Summary
Methods inherited from class java.util.AbstractMap
clone, putAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putAll, putIfAbsent, replace, replace, replaceAll
-
Constructor Details
-
ReversedSequencedMapView
Constructs a new instance.- Parameters:
src- the source map
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
size
public int size() -
isEmpty
public boolean isEmpty() -
containsValue
- Specified by:
containsValuein interfaceMap<K,V> - Overrides:
containsValuein classAbstractMap<K,V>
-
containsKey
- Specified by:
containsKeyin interfaceMap<K,V> - Overrides:
containsKeyin classAbstractMap<K,V>
-
get
-
remove
-
entrySet
-
put
-
remove
-
clear
public void clear() -
keySet
-
values
-
reversed
- Specified by:
reversedin interfaceSequencedMap<K,V>
-
sequencedKeySet
- Specified by:
sequencedKeySetin interfaceSequencedMap<K,V>
-
sequencedValues
- Specified by:
sequencedValuesin interfaceSequencedMap<K,V>
-
sequencedEntrySet
- Specified by:
sequencedEntrySetin interfaceSequencedMap<K,V>
-
firstEntry
- Specified by:
firstEntryin interfaceSequencedMap<K,V>
-
lastEntry
- Specified by:
lastEntryin interfaceSequencedMap<K,V>
-
pollFirstEntry
- Specified by:
pollFirstEntryin interfaceSequencedMap<K,V>
-
pollLastEntry
- Specified by:
pollLastEntryin interfaceSequencedMap<K,V>
-
putFirst
- Specified by:
putFirstin interfaceSequencedMap<K,V>
-
putLast
- Specified by:
putLastin interfaceSequencedMap<K,V>
-