public final class UniformPair<T> extends Object implements MetaDefItem, Serializable
Constructor and Description |
---|
UniformPair(T first,
T second)
Construct pair of values.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
T |
getFirst()
Returns first value within pair.
|
T |
getSecond()
Returns second value within pair.
|
int |
hashCode() |
void |
setFirst(T first)
Set the first value of the pair to a new value.
|
void |
setSecond(T second)
Set the second value of the pair to a new value.
|
String |
toString() |
public T getFirst()
public T getSecond()
public void setFirst(T first)
first
- value to be setpublic void setSecond(T second)
second
- value to be set