|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.ext.rdf.Couple<T,U>
T
- The first object's type.U
- The second object's type.public class Couple<T,U>
Relationship between two typed objects.
Constructor Summary | |
---|---|
Couple(T first,
U second)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(Object other)
|
T |
getFirst()
Returns the first object. |
U |
getSecond()
Returns the second object. |
int |
hashCode()
|
void |
setFirst(T first)
Sets the first object. |
void |
setSecond(U second)
Sets the second object. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Couple(T first, U second)
first
- The first object.second
- The second object.Method Detail |
---|
public boolean equals(Object other)
equals
in class Object
public T getFirst()
public U getSecond()
public int hashCode()
hashCode
in class Object
public void setFirst(T first)
first
- The first object.public void setSecond(U second)
second
- The second object.public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |