|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.entityfs.support.util.TwoObjects<T,U>
public class TwoObjects<T,U>
This immutable value object contains two objects that may be of different types.
This object should probably have been named Tuple2 instead.
| Constructor Summary | |
|---|---|
TwoObjects(T first,
U second)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
T |
getFirst()
Get the first object. |
U |
getSecond()
Get the second object. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TwoObjects(T first,
U second)
first - The first object. This may be null.second - The second object. This may be null.| Method Detail |
|---|
public T getFirst()
public U getSecond()
public String toString()
toString in class Objectpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||