Class ReadOnlyTriplet<A,B,C>
java.lang.Object
lu.kbra.pclib.datastructure.tuple.ReadOnlyTriplet<A,B,C>
- All Implemented Interfaces:
Cloneable,DeepCloneable,ReadOnlyTuple,Triplet<A,,B, C> Tuple
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObject[]asArray()clone()final intboolean<T> Tget(int i) getFirst()getThird()booleanhasFirst()inthashCode()booleanbooleanhasThird()<T> ReadOnlyTriplet<?,?, ?> <T> Tmap(TriFunction<A, B, C, T> func) <T,N, O> ReadOnlyTriplet<T, N, O> map(TriFunction<A, B, C, T> funcFirst, TriFunction<A, B, C, N> funcSecond, TriFunction<A, B, C, O> funcThird) <T> ReadOnlyTriplet<T,B, C> mapFirst(TriFunction<A, B, C, T> func) <T> ReadOnlyTriplet<A,T, C> mapSecond(TriFunction<A, B, C, T> func) <T> ReadOnlyTriplet<A,B, T> mapThird(TriFunction<A, B, C, 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
-
ReadOnlyTriplet
public ReadOnlyTriplet()
-
-
Method Details
-
asArray
-
clone
-
cloneEditable
- Specified by:
cloneEditablein interfaceTriplet<A,B, C> - Specified by:
cloneEditablein interfaceTuple
-
cloneReadOnly
- Specified by:
cloneReadOnlyin interfaceTriplet<A,B, C> - Specified by:
cloneReadOnlyin interfaceTuple
-
elementCount
public final int elementCount()- Specified by:
elementCountin interfaceTriplet<A,B, C> - Specified by:
elementCountin interfaceTuple
-
equals
-
get
public <T> T get(int i) -
getFirst
-
getSecond
-
getThird
-
hashCode
public int hashCode() -
hasFirst
public boolean hasFirst() -
hasSecond
public boolean hasSecond() -
hasThird
public boolean hasThird() -
map
-
map
public <T,N, ReadOnlyTriplet<T,O> N, mapO> (TriFunction<A, B, C, T> funcFirst, TriFunction<A, B, C, N> funcSecond, TriFunction<A, B, C, O> funcThird) -
mapFirst
-
mapSecond
-
mapThird
-
map
-
toString
-