Module de.powerstat.validation
Class NTuple3<T1 extends Comparable<T1>,T2 extends Comparable<T2>,T3 extends Comparable<T3>>
java.lang.Object
de.powerstat.validation.containers.NTuple3<T1,T2,T3>
- Type Parameters:
T1
- Type 1T2
- Type 2T3
- Type 3
- All Implemented Interfaces:
Comparable<NTuple3<T1,
T2, T3>>
public final class NTuple3<T1 extends Comparable<T1>,T2 extends Comparable<T2>,T3 extends Comparable<T3>>
extends Object
implements Comparable<NTuple3<T1,T2,T3>>
N-Tuple 3.
-
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>>
NTuple3<T1,T2, T3> of
(T1 obj1, T2 obj2, T3 obj3) NTuple3 factory.t1Value()
Returns the first value of this NTuple3 as a T1.t2Value()
Returns the second value of this NTuple3 as a T2.t3Value()
Returns the second value of this NTuple3 as a T3.toString()
Returns the string representation of this NTuple3.
-
Field Details
-
object1
Object1 of type T1. -
object2
Object2 of type T2. -
object3
Object3 of type T3.
-
-
Constructor Details
-
NTuple3
Private constructor.- Parameters:
obj1
- Object 1 of type T1obj2
- Object 2 of Type T2obj3
- Object 3 of Type T3
-
-
Method Details
-
of
public static <T1 extends Comparable<T1>,T2 extends Comparable<T2>, NTuple3<T1,T3 extends Comparable<T3>> T2, ofT3> (T1 obj1, T2 obj2, T3 obj3) NTuple3 factory.- Type Parameters:
T1
- Type 1T2
- Type 2T3
- Type 3- Parameters:
obj1
- Object 1 of type T1obj2
- Object 2 of Type T2obj3
- Object 3 of Type T3- Returns:
- NTuple3 object
-
t1Value
Returns the first value of this NTuple3 as a T1.- Returns:
- The T1 value represented by this object.
-
t2Value
Returns the second value of this NTuple3 as a T2.- Returns:
- The T2 value represented by this object.
-
t3Value
Returns the second value of this NTuple3 as a T3.- Returns:
- The T3 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 NTuple3. The exact details of this representation are unspecified and subject to change, but the following may be regarded as typical: "NTuple3[object1=..., object2=..., object3=...]" -
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:
-