public class PairEntity<F,S>
extends java.lang.Object
equals(Object), returning true if
Object.equals(Object) is true on each of the contained objects.| Modifier and Type | Field and Description |
|---|---|
F |
first
First element in the tuple of type
F |
S |
second
Second element in the tuple of type
S |
| Constructor and Description |
|---|
PairEntity(F first,
S second)
Constructor for a
PairEntity. |
| Modifier and Type | Method and Description |
|---|---|
static <A,B> PairEntity<A,B> |
create(A a,
B b)
Returns an appropriately typed
PairEntity. |
boolean |
equals(java.lang.Object o)
Returns a boolean that represents whether or not two objects are equal by delegating to
their respective
Object.equals(Object) methods. |
int |
hashCode()
Returns an int of the hash code using the hash codes of the underlying objects.
|
java.lang.String |
toString()
Returns a String of the value of the first object plus the value of the second object.
|
public final F first
Fpublic final S second
Spublic PairEntity(F first, S second)
PairEntity.first - the first object in the PairEntitysecond - the second object in the PairEntitypublic static <A,B> PairEntity<A,B> create(A a, B b)
PairEntity.A - the type of the first object in the PairEntityB - the type of the second object in the PairEntitya - the first object in the PairEntityb - the second object in the PairEntityPairEntity that is templatized with the types of a and bpublic boolean equals(java.lang.Object o)
Object.equals(Object) methods.equals in class java.lang.Objecto - the PairEntity to which this one is to be checked for equalitytrue if the underlying objects of the Pair are both considered
equal;
false otherwise.public int hashCode()
hashCode in class java.lang.ObjectPairEntity objects.public java.lang.String toString()
toString in class java.lang.Object