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:
Serializable
,Tuple
- Direct Known Subclasses:
Tuple2
public class Tuple1<T1> extends Object implements Tuple, Serializable
ATuple
of 1 element.- Since:
- 2.0.0
- Author:
- Marcel Overdijk
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
T1
getElement1()
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 Detail
-
Tuple1
public Tuple1(T1 element1)
Constructs a newTuple
with the supplied elements.
-
-
Method Detail
-
getElement1
public T1 getElement1()
Returns the 1st element of this tuple.- Returns:
- the 1st element of this tuple
-
setElement1
public void setElement1(T1 element1)
Sets the 1st element of this tuple.
-
size
public int size()
Description copied from interface:Tuple
Returns the number of elements of this tuple.
-
-