Package org.polyfrost.polyui.utils
Class MutableTriple
-
- All Implemented Interfaces:
public final class MutableTriple<A extends Object, B extends Object, C extends Object>Represents a triad of values.
There is no meaning attached to values in this class, it can be used for any purpose. Triple exhibits value semantics, i.e. two triples are equal if all three components are equal. An example of decomposing it into values:
-
-
Constructor Summary
Constructors Constructor Description MutableTriple(A first, B second, C third)
-
Method Summary
Modifier and Type Method Description final AgetFirst()First value. final UnitsetFirst(A first)First value. final BgetSecond()Second value. final UnitsetSecond(B second)Second value. final CgetThird()Third value. final UnitsetThird(C third)Third value. StringtoString()Returns string representation of the MutableTriple including its first, second and third values. final ArrayList<Object>toList()Converts this triple into a list. final Triple<A, B, C>toTriple()Converts this mutable pair into an immutable Triple.
-