java.lang.Object
java.lang.Record
overrungl.util.value.Tuple3<T,U,V>
- Type Parameters:
T
- the first type.U
- the second type.V
- the third type.- Record Components:
x
- the first value.y
- the second value.z
- the third value.
A tuple of 3 objects.
- Since:
- 0.1.0
- Author:
- squid233
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.first()
Returnsx
.final int
hashCode()
Returns a hash code value for this object.left()
Returnsx
.middle()
Returnsy
.right()
Returnsz
.second()
Returnsy
.third()
Returnsz
.final String
toString()
Returns a string representation of this record class.x()
Returns the value of thex
record component.y()
Returns the value of they
record component.z()
Returns the value of thez
record 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 thex
record component.- Returns:
- the value of the
x
record component
-
y
Returns the value of they
record component.- Returns:
- the value of the
y
record component
-
z
Returns the value of thez
record component.- Returns:
- the value of the
z
record component
-