Package org.hawaiiframework.util.tuple
Class Tuple1<T1>
java.lang.Object
org.hawaiiframework.util.tuple.Tuple1<T1>
- Type Parameters:
T1
- the type of the 1st element
- All Implemented Interfaces:
Tuple
- Direct Known Subclasses:
Tuple2
A
Tuple
of 1 element.- Since:
- 2.0.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the 1st element of this tuple.int
hashCode()
void
setElement1
(T1 element1) Sets the 1st element of this tuple.int
size()
Returns the number of elements of this tuple.
-
Constructor Details
-
Tuple1
Constructs a newTuple
with the supplied elements.
-
-
Method Details
-
getElement1
Returns the 1st element of this tuple.- Returns:
- the 1st element of this tuple
-
setElement1
Sets the 1st element of this tuple. -
size
public int size()Description copied from interface:Tuple
Returns the number of elements of this tuple. -
equals
-
hashCode
public int hashCode()
-