Module de.powerstat.validation
Class NTuple4<T1 extends Comparable<T1>,T2 extends Comparable<T2>,T3 extends Comparable<T3>,T4 extends Comparable<T4>>
java.lang.Object
de.powerstat.validation.containers.NTuple4<T1,T2,T3,T4>
- Type Parameters:
T1
- Type 1T2
- Type 2T3
- Type 3T4
- Type 4
- All Implemented Interfaces:
Comparable<NTuple4<T1,
T2, T3, T4>>
public final class NTuple4<T1 extends Comparable<T1>,T2 extends Comparable<T2>,T3 extends Comparable<T3>,T4 extends Comparable<T4>>
extends Object
implements Comparable<NTuple4<T1,T2,T3,T4>>
N-Tuple 4.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Compare with another object.boolean
Is equal with another object.int
hashCode()
Calculate hash code.static <T1 extends Comparable<T1>,
T2 extends Comparable<T2>, T3 extends Comparable<T3>, T4 extends Comparable<T4>>
NTuple4<T1,T2, T3, T4> of
(T1 obj1, T2 obj2, T3 obj3, T4 obj4) NTuple3 factory.t1Value()
Returns the first value of this NTuple4 as a T1.t2Value()
Returns the second value of this NTuple4 as a T2.t3Value()
Returns the second value of this NTuple4 as a T3.t4Value()
Returns the second value of this NTuple4 as a T4.toString()
Returns the string representation of this NTuple4.
-
Field Details
-
object1
Object1 of type T1. -
object2
Object2 of type T2. -
object3
Object3 of type T3. -
object4
Object4 of type T4.
-
-
Constructor Details
-
NTuple4
Private constructor.- Parameters:
obj1
- Object 1 of type T1obj2
- Object 2 of Type T2obj3
- Object 3 of Type T3obj4
- Object 4 of Type T4
-
-
Method Details
-
of
public static <T1 extends Comparable<T1>,T2 extends Comparable<T2>, NTuple4<T1,T3 extends Comparable<T3>, T4 extends Comparable<T4>> T2, ofT3, T4> (T1 obj1, T2 obj2, T3 obj3, T4 obj4) NTuple3 factory.- Type Parameters:
T1
- Type 1T2
- Type 2T3
- Type 3T4
- Type 4- Parameters:
obj1
- Object 1 of type T1obj2
- Object 2 of Type T2obj3
- Object 3 of Type T3obj4
- Object 4 of Type T4- Returns:
- NTuple4 object
-
t1Value
Returns the first value of this NTuple4 as a T1.- Returns:
- The T1 value represented by this object.
-
t2Value
Returns the second value of this NTuple4 as a T2.- Returns:
- The T2 value represented by this object.
-
t3Value
Returns the second value of this NTuple4 as a T3.- Returns:
- The T3 value represented by this object.
-
t4Value
Returns the second value of this NTuple4 as a T4.- Returns:
- The T4 value represented by this object.
-
hashCode
public int hashCode()Calculate hash code. -
equals
Is equal with another object. -
toString
Returns the string representation of this NTuple4. The exact details of this representation are unspecified and subject to change, but the following may be regarded as typical: "NTuple4[object1=..., object2=..., object3=..., object4=...]" -
compareTo
Compare with another object.- Specified by:
compareTo
in interfaceComparable<T1 extends Comparable<T1>>
- Parameters:
obj
- Object to compare with- Returns:
- 0: equal; 1: greater; -1: smaller
- See Also:
-