Package com.andrebreves.tuple
Class Tuple3<T1,T2,T3>
- java.lang.Object
-
- com.andrebreves.tuple.Tuple3<T1,T2,T3>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Tuple3<T1,T2,T3> other)intdegree()Returns the value count of this Tuple.booleanequals(java.lang.Object obj)inthashCode()static <T1,T2,T3>
Tuple3<T1,T2,T3>of(T1 v1, T2 v2, T3 v3)Returns a Tuple that has 3 values.T1v1()Returns the 1st value of this Tuple.T2v2()Returns the 2nd value of this Tuple.T3v3()Returns the 3rd value of this Tuple.
-
-
-
Method Detail
-
of
public static <T1,T2,T3> Tuple3<T1,T2,T3> of(T1 v1, T2 v2, T3 v3)
Returns a Tuple that has 3 values.
-
v1
public T1 v1()
Returns the 1st value of this Tuple.
-
v2
public T2 v2()
Returns the 2nd value of this Tuple.
-
v3
public T3 v3()
Returns the 3rd value of this Tuple.
-
degree
public int degree()
Description copied from interface:TupleReturns the value count of this Tuple.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-