Class NTuple9<T1 extends Comparable<T1>,T2 extends Comparable<T2>,T3 extends Comparable<T3>,T4 extends Comparable<T4>,T5 extends Comparable<T5>,T6 extends Comparable<T6>,T7 extends Comparable<T7>,T8 extends Comparable<T8>,T9 extends Comparable<T9>>

java.lang.Object
de.powerstat.validation.containers.NTuple9<T1,T2,T3,T4,T5,T6,T7,T8,T9>
Type Parameters:
T1 - Type 1
T2 - Type 2
T3 - Type 3
T4 - Type 4
T5 - Type 5
T6 - Type 6
T7 - Type 7
T8 - Type 8
T9 - Type 9
All Implemented Interfaces:
Comparable<NTuple9<T1,T2,T3,T4,T5,T6,T7,T8,T9>>

public final class NTuple9<T1 extends Comparable<T1>,T2 extends Comparable<T2>,T3 extends Comparable<T3>,T4 extends Comparable<T4>,T5 extends Comparable<T5>,T6 extends Comparable<T6>,T7 extends Comparable<T7>,T8 extends Comparable<T8>,T9 extends Comparable<T9>> extends Object implements Comparable<NTuple9<T1,T2,T3,T4,T5,T6,T7,T8,T9>>
N-Tuple 9.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final T1
    Object1 of type T1.
    private final T2
    Object2 of type T2.
    private final T3
    Object3 of type T3.
    private final T4
    Object4 of type T4.
    private final T5
    Object5 of type T5.
    private final T6
    Object6 of type T6.
    private final T7
    Object7 of type T7.
    private final T8
    Object8 of type T8.
    private final T9
    Object9 of type T9.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    NTuple9(T1 obj1, T2 obj2, T3 obj3, T4 obj4, T5 obj5, T6 obj6, T7 obj7, T8 obj8, T9 obj9)
    Private constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Compare with another object.
    boolean
    Is equal with another object.
    int
    Calculate hash code.
    static <T1 extends Comparable<T1>, T2 extends Comparable<T2>, T3 extends Comparable<T3>, T4 extends Comparable<T4>, T5 extends Comparable<T5>, T6 extends Comparable<T6>, T7 extends Comparable<T7>, T8 extends Comparable<T8>, T9 extends Comparable<T9>>
    NTuple9<T1,T2,T3,T4,T5,T6,T7,T8,T9>
    of(T1 obj1, T2 obj2, T3 obj3, T4 obj4, T5 obj5, T6 obj6, T7 obj7, T8 obj8, T9 obj9)
    NTuple9 factory.
    Returns the first value of this NTuple9 as a T1.
    Returns the second value of this NTuple9 as a T2.
    Returns the second value of this NTuple9 as a T3.
    Returns the second value of this NTuple9 as a T4.
    Returns the second value of this NTuple9 as a T5.
    Returns the second value of this NTuple9 as a T6.
    Returns the second value of this NTuple9 as a T7.
    Returns the second value of this NTuple9 as a T8.
    Returns the second value of this NTuple9 as a T9.
    Returns the string representation of this NTuple9.

    Methods inherited from class java.lang.Object

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

    • object1

      private final T1 extends Comparable<T1> object1
      Object1 of type T1.
    • object2

      private final T2 extends Comparable<T2> object2
      Object2 of type T2.
    • object3

      private final T3 extends Comparable<T3> object3
      Object3 of type T3.
    • object4

      private final T4 extends Comparable<T4> object4
      Object4 of type T4.
    • object5

      private final T5 extends Comparable<T5> object5
      Object5 of type T5.
    • object6

      private final T6 extends Comparable<T6> object6
      Object6 of type T6.
    • object7

      private final T7 extends Comparable<T7> object7
      Object7 of type T7.
    • object8

      private final T8 extends Comparable<T8> object8
      Object8 of type T8.
    • object9

      private final T9 extends Comparable<T9> object9
      Object9 of type T9.
  • Constructor Details

    • NTuple9

      private NTuple9(T1 obj1, T2 obj2, T3 obj3, T4 obj4, T5 obj5, T6 obj6, T7 obj7, T8 obj8, T9 obj9)
      Private constructor.
      Parameters:
      obj1 - Object 1 of type T1
      obj2 - Object 2 of Type T2
      obj3 - Object 3 of Type T3
      obj4 - Object 4 of type T4
      obj5 - Object 5 of Type T5
      obj6 - Object 6 of Type T6
      obj7 - Object 7 of type T7
      obj8 - Object 8 of Type T8
      obj9 - Object 9 of Type T9
  • Method Details

    • of

      public static <T1 extends Comparable<T1>, T2 extends Comparable<T2>, T3 extends Comparable<T3>, T4 extends Comparable<T4>, T5 extends Comparable<T5>, T6 extends Comparable<T6>, T7 extends Comparable<T7>, T8 extends Comparable<T8>, T9 extends Comparable<T9>> NTuple9<T1,T2,T3,T4,T5,T6,T7,T8,T9> of(T1 obj1, T2 obj2, T3 obj3, T4 obj4, T5 obj5, T6 obj6, T7 obj7, T8 obj8, T9 obj9)
      NTuple9 factory.
      Type Parameters:
      T1 - Type 1
      T2 - Type 2
      T3 - Type 3
      T4 - Type 4
      T5 - Type 5
      T6 - Type 6
      T7 - Type 7
      T8 - Type 8
      T9 - Type 9
      Parameters:
      obj1 - Object 1 of type T1
      obj2 - Object 2 of Type T2
      obj3 - Object 3 of Type T3
      obj4 - Object 1 of type T4
      obj5 - Object 2 of Type T5
      obj6 - Object 3 of Type T6
      obj7 - Object 1 of type T7
      obj8 - Object 2 of Type T8
      obj9 - Object 3 of Type T9
      Returns:
      NTuple9 object
    • t1Value

      public T1 t1Value()
      Returns the first value of this NTuple9 as a T1.
      Returns:
      The T1 value represented by this object.
    • t2Value

      public T2 t2Value()
      Returns the second value of this NTuple9 as a T2.
      Returns:
      The T2 value represented by this object.
    • t3Value

      public T3 t3Value()
      Returns the second value of this NTuple9 as a T3.
      Returns:
      The T3 value represented by this object.
    • t4Value

      public T4 t4Value()
      Returns the second value of this NTuple9 as a T4.
      Returns:
      The T4 value represented by this object.
    • t5Value

      public T5 t5Value()
      Returns the second value of this NTuple9 as a T5.
      Returns:
      The T5 value represented by this object.
    • t6Value

      public T6 t6Value()
      Returns the second value of this NTuple9 as a T6.
      Returns:
      The T6 value represented by this object.
    • t7Value

      public T7 t7Value()
      Returns the second value of this NTuple9 as a T7.
      Returns:
      The T7 value represented by this object.
    • t8Value

      public T8 t8Value()
      Returns the second value of this NTuple9 as a T8.
      Returns:
      The T8 value represented by this object.
    • t9Value

      public T9 t9Value()
      Returns the second value of this NTuple9 as a T9.
      Returns:
      The T9 value represented by this object.
    • hashCode

      public int hashCode()
      Calculate hash code.
      Overrides:
      hashCode in class Object
      Returns:
      Hash
      See Also:
    • equals

      public boolean equals(Object obj)
      Is equal with another object.
      Overrides:
      equals in class Object
      Parameters:
      obj - Object
      Returns:
      true when equal, false otherwise
      See Also:
    • toString

      public String toString()
      Returns the string representation of this NTuple9. The exact details of this representation are unspecified and subject to change, but the following may be regarded as typical: "NTuple9[object1=..., object2=..., object3=..., object34=..., object5=..., object6=..., object7=..., object8=..., object9=...]"
      Overrides:
      toString in class Object
      Returns:
      String representation of this NTuple9
      See Also:
    • compareTo

      public int compareTo(NTuple9<T1,T2,T3,T4,T5,T6,T7,T8,T9> obj)
      Compare with another object.
      Specified by:
      compareTo in interface Comparable<T1 extends Comparable<T1>>
      Parameters:
      obj - Object to compare with
      Returns:
      0: equal; 1: greater; -1: smaller
      See Also: