Record Class Bundle8<T1,T2,T3,T4,T5,T6,T7,T8>

java.lang.Object
java.lang.Record
com.portingdeadmods.portingdeadlibs.utils.functional.Bundle8<T1,T2,T3,T4,T5,T6,T7,T8>
All Implemented Interfaces:
Bundle

public record Bundle8<T1,T2,T3,T4,T5,T6,T7,T8>(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8) extends Record implements Bundle
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    Bundle8(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8)
    Creates an instance of a Bundle8 record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    get(int n)
     
    boolean
    has(int n)
     
    final int
    Returns a hash code value for this object.
    static <T1, T2, T3, T4, T5, T6, T7, T8>
    Bundle8<T1,T2,T3,T4,T5,T6,T7,T8>
    populate(Object value, int n)
     
    final String
    Returns a string representation of this record class.
    v1()
    Returns the value of the v1 record component.
    v2()
    Returns the value of the v2 record component.
    v3()
    Returns the value of the v3 record component.
    v4()
    Returns the value of the v4 record component.
    v5()
    Returns the value of the v5 record component.
    v6()
    Returns the value of the v6 record component.
    v7()
    Returns the value of the v7 record component.
    v8()
    Returns the value of the v8 record component.
    with(Object value, int n)
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Bundle8

      public Bundle8()
    • Bundle8

      public Bundle8(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8)
      Creates an instance of a Bundle8 record class.
      Parameters:
      v1 - the value for the v1 record component
      v2 - the value for the v2 record component
      v3 - the value for the v3 record component
      v4 - the value for the v4 record component
      v5 - the value for the v5 record component
      v6 - the value for the v6 record component
      v7 - the value for the v7 record component
      v8 - the value for the v8 record component
  • Method Details

    • populate

      public static <T1, T2, T3, T4, T5, T6, T7, T8> Bundle8<T1,T2,T3,T4,T5,T6,T7,T8> populate(Object value, int n)
    • get

      public Object get(int n)
      Specified by:
      get in interface Bundle
    • has

      public boolean has(int n)
      Specified by:
      has in interface Bundle
    • with

      public Bundle8<T1,T2,T3,T4,T5,T6,T7,T8> with(Object value, int n)
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • v1

      public T1 v1()
      Returns the value of the v1 record component.
      Returns:
      the value of the v1 record component
    • v2

      public T2 v2()
      Returns the value of the v2 record component.
      Returns:
      the value of the v2 record component
    • v3

      public T3 v3()
      Returns the value of the v3 record component.
      Returns:
      the value of the v3 record component
    • v4

      public T4 v4()
      Returns the value of the v4 record component.
      Returns:
      the value of the v4 record component
    • v5

      public T5 v5()
      Returns the value of the v5 record component.
      Returns:
      the value of the v5 record component
    • v6

      public T6 v6()
      Returns the value of the v6 record component.
      Returns:
      the value of the v6 record component
    • v7

      public T7 v7()
      Returns the value of the v7 record component.
      Returns:
      the value of the v7 record component
    • v8

      public T8 v8()
      Returns the value of the v8 record component.
      Returns:
      the value of the v8 record component