Package com.andrebreves.tuple
Class Tuple4<T1,T2,T3,T4>
- java.lang.Object
-
- com.andrebreves.tuple.Tuple4<T1,T2,T3,T4>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Tuple4<T1,T2,T3,T4> other)intdegree()Returns the value count of this Tuple.booleanequals(java.lang.Object obj)inthashCode()static <T1,T2,T3,T4>
Tuple4<T1,T2,T3,T4>of(T1 v1, T2 v2, T3 v3, T4 v4)Returns a Tuple that has 4 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.T4v4()Returns the 4th value of this Tuple.
-
-
-
Method Detail
-
of
public static <T1,T2,T3,T4> Tuple4<T1,T2,T3,T4> of(T1 v1, T2 v2, T3 v3, T4 v4)
Returns a Tuple that has 4 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.
-
v4
public T4 v4()
Returns the 4th 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
-
-