Record Class Tuple4
java.lang.Object
java.lang.Record
tools.refinery.store.tuple.Tuple4
- All Implemented Interfaces:
Comparable<Tuple>, Tuple
-
Constructor Summary
ConstructorsConstructorDescriptionTuple4(int value0, int value1, int value2, int value3) Creates an instance of aTuple4record class. -
Method Summary
Modifier and TypeMethodDescriptionintbooleanIndicates whether some other object is "equal to" this one.intget(int element) intgetSize()inthashCode()Returns a hash code value for this object.set(int element, int value) toString()Returns a string representation of this record class.intvalue0()Returns the value of thevalue0record component.intvalue1()Returns the value of thevalue1record component.intvalue2()Returns the value of thevalue2record component.intvalue3()Returns the value of thevalue3record component.
-
Constructor Details
-
Tuple4
public Tuple4(int value0, int value1, int value2, int value3) Creates an instance of aTuple4record class.- Parameters:
value0- the value for thevalue0record componentvalue1- the value for thevalue1record componentvalue2- the value for thevalue2record componentvalue3- the value for thevalue3record component
-
-
Method Details
-
getSize
-
get
-
set
-
toString
-
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 with thecomparemethod from their corresponding wrapper classes. -
hashCode
-
compareTo
-
value0
public int value0()Returns the value of thevalue0record component.- Returns:
- the value of the
value0record component
-
value1
public int value1()Returns the value of thevalue1record component.- Returns:
- the value of the
value1record component
-
value2
public int value2()Returns the value of thevalue2record component.- Returns:
- the value of the
value2record component
-
value3
public int value3()Returns the value of thevalue3record component.- Returns:
- the value of the
value3record component
-