Record Class Bundle4<T1,T2,T3,T4>
java.lang.Object
java.lang.Record
com.portingdeadmods.portingdeadlibs.utils.functional.Bundle4<T1,T2,T3,T4>
- All Implemented Interfaces:
Bundle
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.get(int n) booleanhas(int n) final inthashCode()Returns a hash code value for this object.static <T1,T2, T3, T4>
Bundle4<T1, T2, T3, T4> final StringtoString()Returns a string representation of this record class.v1()Returns the value of thev1record component.v2()Returns the value of thev2record component.v3()Returns the value of thev3record component.v4()Returns the value of thev4record component.
-
Constructor Details
-
Bundle4
public Bundle4() -
Bundle4
Creates an instance of aBundle4record class.- Parameters:
v1- the value for thev1record componentv2- the value for thev2record componentv3- the value for thev3record componentv4- the value for thev4record component
-
-
Method Details
-
populate
-
get
-
has
public boolean has(int n) -
with
-
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). -
v1
Returns the value of thev1record component.- Returns:
- the value of the
v1record component
-
v2
Returns the value of thev2record component.- Returns:
- the value of the
v2record component
-
v3
Returns the value of thev3record component.- Returns:
- the value of the
v3record component
-
v4
Returns the value of thev4record component.- Returns:
- the value of the
v4record component
-