T1
- Type for the first element of the tuple.public class UnaryTuple<T1> extends Object implements Serializable
Modifier | Constructor and Description |
---|---|
protected |
UnaryTuple(T1 first)
Constructs a 1-tuple.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
T1 |
getFirst()
Gets the first element of the tuple.
|
int |
hashCode() |
void |
setFirst(T1 first)
Sets the first element of the tuple.
|
String |
toString() |
static <TT1> UnaryTuple<TT1> |
valueOf(TT1 first)
Creates a new 1-tuple using the given values.
|
protected UnaryTuple(T1 first)
first
- First element in the tuple.public static <TT1> UnaryTuple<TT1> valueOf(TT1 first)
TT1
- the type for the first element of the tuple.first
- First element in the tuple.public T1 getFirst()
public void setFirst(T1 first)
first
- The first element.Copyright © 2015. All Rights Reserved.