Package com.strobel.componentmodel
Class PairKeyMap
- java.lang.Object
-
- com.strobel.componentmodel.PairKeyMap
-
- All Implemented Interfaces:
FrugalKeyMap
final class PairKeyMap extends java.lang.Object implements FrugalKeyMap
-
-
Field Summary
Fields Modifier and Type Field Description private int_keyIndex1private int_keyIndex2private java.lang.Object_value1private java.lang.Object_value2-
Fields inherited from interface com.strobel.componentmodel.FrugalKeyMap
EMPTY
-
-
Constructor Summary
Constructors Constructor Description PairKeyMap(int keyIndex1, java.lang.Object value1, int keyIndex2, java.lang.Object value2)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <V> Vget(Key<V> key)booleanisEmpty()<V> FrugalKeyMapminus(Key<V> key)<V> FrugalKeyMapplus(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
-
-
-
-
Method Detail
-
plus
@NotNull public final <V> FrugalKeyMap plus(@NotNull Key<V> key, @NotNull V value)
- Specified by:
plusin interfaceFrugalKeyMap
-
minus
@NotNull public final <V> FrugalKeyMap minus(@NotNull Key<V> key)
- Specified by:
minusin interfaceFrugalKeyMap
-
get
public final <V> V get(@NotNull Key<V> key)
- Specified by:
getin interfaceFrugalKeyMap
-
isEmpty
public final boolean isEmpty()
- Specified by:
isEmptyin interfaceFrugalKeyMap
-
-