Interface Pair<K,V>
- All Superinterfaces:
Cloneable,DeepCloneable,Tuple
- All Known Implementing Classes:
EditablePair,ReadOnlyPair,TimedResult
-
Method Summary
Modifier and TypeMethodDescriptionObject[]asArray()clone()default int<T> Tget(int i) getKey()getValue()booleanhasKey()booleanhasValue()<T> Pair<?,?> <T> Tmap(BiFunction<K, V, T> func) <T,N> Pair<T, N> map(BiFunction<K, V, T> funcKey, BiFunction<K, V, N> funcValue) mapKey(BiFunction<K, V, T> func) mapValue(BiFunction<K, V, T> func) Methods inherited from interface lu.kbra.pclib.datastructure.DeepCloneable
deepClone
-
Method Details
-
asArray
Object[] asArray() -
clone
- Specified by:
clonein interfaceDeepCloneable- Specified by:
clonein interfaceTuple
-
cloneEditable
EditablePair<K,V> cloneEditable()- Specified by:
cloneEditablein interfaceTuple
-
cloneReadOnly
ReadOnlyPair<K,V> cloneReadOnly()- Specified by:
cloneReadOnlyin interfaceTuple
-
elementCount
default int elementCount()- Specified by:
elementCountin interfaceTuple
-
get
<T> T get(int i) -
getKey
K getKey() -
getValue
V getValue() -
hasKey
boolean hasKey() -
hasValue
boolean hasValue() -
map
-
map
-
mapKey
-
mapValue
-
map
-