Package com.strobel.componentmodel
Class DictionaryKeyMap
- java.lang.Object
-
- com.strobel.componentmodel.DictionaryKeyMap
-
- All Implemented Interfaces:
FrugalKeyMap
final class DictionaryKeyMap extends java.lang.Object implements FrugalKeyMap
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.Integer,java.lang.Object>
_map
-
Fields inherited from interface com.strobel.componentmodel.FrugalKeyMap
EMPTY
-
-
Constructor Summary
Constructors Constructor Description DictionaryKeyMap(int[] keyIndexes, int newKey, java.lang.Object[] values, java.lang.Object newValue)
DictionaryKeyMap(DictionaryKeyMap oldMap, int excludeIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <V> V
get(Key<V> key)
boolean
isEmpty()
<V> FrugalKeyMap
minus(Key<V> key)
<V> FrugalKeyMap
plus(Key<V> key, V value)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.strobel.componentmodel.FrugalKeyMap
toString
-
-
-
-
Constructor Detail
-
DictionaryKeyMap
DictionaryKeyMap(DictionaryKeyMap oldMap, int excludeIndex)
-
DictionaryKeyMap
DictionaryKeyMap(int[] keyIndexes, int newKey, java.lang.Object[] values, java.lang.Object newValue)
-
-
Method Detail
-
plus
@NotNull public final <V> FrugalKeyMap plus(@NotNull Key<V> key, @NotNull V value)
- Specified by:
plus
in interfaceFrugalKeyMap
-
minus
@NotNull public final <V> FrugalKeyMap minus(@NotNull Key<V> key)
- Specified by:
minus
in interfaceFrugalKeyMap
-
get
public final <V> V get(@NotNull Key<V> key)
- Specified by:
get
in interfaceFrugalKeyMap
-
isEmpty
public final boolean isEmpty()
- Specified by:
isEmpty
in interfaceFrugalKeyMap
-
-