java.lang.Object
java.lang.Record
overrungl.util.value.Triplet<T>
- Type Parameters:
 T- the type.- Record Components:
 x- the first value.y- the second value.z- the third value.
A triplet of the same type objects.
- Since:
 - 0.1.0
 - Author:
 - squid233
 
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordA triplet of doubles.static final recordA triplet of floats.static final recordA triplet of integers.static final recordA triplet of longs. - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.first()Returnsx.final inthashCode()Returns a hash code value for this object.left()Returnsx.middle()Returnsy.right()Returnsz.second()Returnsy.third()Returnsz.final StringtoString()Returns a string representation of this record class.x()Returns the value of thexrecord component.y()Returns the value of theyrecord component.z()Returns the value of thezrecord component. 
- 
Constructor Details
 - 
Method Details
- 
first
Returnsx.- Returns:
 x
 - 
second
Returnsy.- Returns:
 y
 - 
third
Returnsz.- Returns:
 z
 - 
left
Returnsx.- Returns:
 x
 - 
middle
Returnsy.- Returns:
 y
 - 
right
Returnsz.- Returns:
 z
 - 
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. - 
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. - 
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). - 
x
Returns the value of thexrecord component.- Returns:
 - the value of the 
xrecord component 
 - 
y
Returns the value of theyrecord component.- Returns:
 - the value of the 
yrecord component 
 - 
z
Returns the value of thezrecord component.- Returns:
 - the value of the 
zrecord component 
 
 -