Class ReadOnlyPair<K,V>
java.lang.Object
lu.kbra.pclib.datastructure.tuple.ReadOnlyPair<K,V>
- All Implemented Interfaces:
Cloneable,DeepCloneable,Pair<K,,V> ReadOnlyTuple,Tuple
- Direct Known Subclasses:
TimedResult
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObject[]asArray()clone()final intboolean<T> Tget(int i) getKey()getValue()inthashCode()booleanhasKey()booleanhasValue()<T> ReadOnlyPair<?,?> <T> Tmap(BiFunction<K, V, T> func) <T,N> ReadOnlyPair<T, N> map(BiFunction<K, V, T> funcKey, BiFunction<K, V, N> funcValue) <T> ReadOnlyPair<T,V> mapKey(BiFunction<K, V, T> func) <T> ReadOnlyPair<K,T> mapValue(BiFunction<K, V, T> func) 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.ReadOnlyTuple
isEditable
-
Constructor Details
-
ReadOnlyPair
public ReadOnlyPair()
-
-
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) -
getKey
-
getValue
-
hashCode
public int hashCode() -
hasKey
public boolean hasKey() -
hasValue
public boolean hasValue() -
map
-
map
-
mapKey
-
mapValue
-
map
-
toString
-