Package com.andrebreves.tuple
Class Tuple1<T1>
- java.lang.Object
-
- com.andrebreves.tuple.Tuple1<T1>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Tuple1<T1> other)intdegree()Returns the value count of this Tuple.booleanequals(java.lang.Object obj)inthashCode()static <T1> Tuple1<T1>of(T1 v1)Returns a Tuple that has 1 value.T1v1()Returns the 1st value of this Tuple.
-
-
-
Method Detail
-
of
public static <T1> Tuple1<T1> of(T1 v1)
Returns a Tuple that has 1 value.
-
v1
public T1 v1()
Returns the 1st 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
-
-