public final class UniformPair<T> extends java.lang.Object implements MetaDefItem, java.io.Serializable
Constructor and Description |
---|
UniformPair(T first,
T second)
Construct pair of values.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.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.
|
java.lang.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 setpublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object