java.lang.Object
java.lang.Record
overrungl.util.value.Tuple4<T,U,V,W>
- Type Parameters:
T- the first type.U- the second type.V- the third type.W- the fourth type.- Record Components:
x- the first value.y- the second value.z- the third value.w- the fourth value.
A tuple of 4 objects.
- Since:
- 0.1.0
- Author:
- squid233
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.first()Returnsx.fourth()Returnsw.final inthashCode()Returns a hash code value for this object.second()Returnsy.third()Returnsz.final StringtoString()Returns a string representation of this record class.w()Returns the value of thewrecord component.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
-
fourth
Returnsw.- Returns:
w
-
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
-
w
Returns the value of thewrecord component.- Returns:
- the value of the
wrecord component
-