Class EditablePair<K,V>
java.lang.Object
lu.kbra.pclib.datastructure.tuple.EditablePair<K,V>
- All Implemented Interfaces:
Cloneable,DeepCloneable,EditableTuple,Pair<K,,V> Tuple
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObject[]asArray()clone()final intboolean<T> Tget(int i) inthashCode()booleanhasKey()booleanhasValue()<T> EditablePair<?,?> <T> Tmap(BiFunction<K, V, T> func) <T,N> EditablePair<T, N> map(BiFunction<K, V, T> funcKey, BiFunction<K, V, N> funcValue) <T> EditablePair<T,V> mapKey(BiFunction<K, V, T> func) <T> EditablePair<K,T> mapValue(BiFunction<K, V, T> func) <T> EditablePair<K,V> set(int index, T element) toString()Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface lu.kbra.pclib.datastructure.DeepCloneable
deepCloneMethods inherited from interface lu.kbra.pclib.datastructure.tuple.EditableTuple
isEditable
-
Field Details
-
key
-
value
-
-
Constructor Details
-
EditablePair
public EditablePair()
-
-
Method Details
-
asArray
-
clone
-
cloneEditable
- Specified by:
cloneEditablein interfacePair<K,V> - Specified by:
cloneEditablein interfaceTuple
-
cloneReadOnly
- Specified by:
cloneReadOnlyin interfacePair<K,V> - Specified by:
cloneReadOnlyin interfaceTuple
-
elementCount
public final int elementCount()- Specified by:
elementCountin interfacePair<K,V> - Specified by:
elementCountin interfaceTuple
-
equals
-
get
public <T> T get(int i) -
hashCode
public int hashCode() -
hasKey
public boolean hasKey() -
hasValue
public boolean hasValue() -
map
-
map
-
mapKey
-
mapValue
-
map
-
setKey
-
setValue
-
toString
-
set
- Specified by:
setin interfaceEditableTuple
-