Class Triplet<A,B,C>
java.lang.Object
lu.kbra.pclib.datastructure.tuple.Triplet<A,B,C>
- All Implemented Interfaces:
Cloneable,DeepCloneable,Tuple
- Direct Known Subclasses:
ReadOnlyTriplet
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObject[]asArray()clone()intboolean<T> Tget(int i) getFirst()getThird()inthashCode()<T> Tmap(TriFunction<A, B, C, T> tri) <T,U, V> Triplet<T, U, V> map(TriFunction<A, B, C, T> funcFirst, TriFunction<A, B, C, U> funcSecond, TriFunction<A, B, C, V> funcThird) mapFirst(TriFunction<A, B, C, T> func) mapSecond(TriFunction<A, B, C, T> func) 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
deepClone
-
Field Details
-
first
-
second
-
third
-
-
Constructor Details
-
Triplet
public Triplet() -
Triplet
-
-
Method Details
-
asArray
-
clone
- Specified by:
clonein interfaceDeepCloneable- Overrides:
clonein classObject
-
elementCount
public int elementCount()- Specified by:
elementCountin interfaceTuple
-
equals
-
get
public <T> T get(int i) -
getFirst
-
getSecond
-
getThird
-
hashCode
public int hashCode() -
map
-
map
public <T,U, Triplet<T,V> U, mapV> (TriFunction<A, B, C, T> funcFirst, TriFunction<A, B, C, U> funcSecond, TriFunction<A, B, C, V> funcThird) -
mapFirst
-
mapSecond
-
mapThird
-
setFirst
-
setSecond
-
setThird
-
toString
-