Package org.restlet.ext.rdf
Class Triple<T,U,V>
- java.lang.Object
-
- org.restlet.ext.rdf.Triple<T,U,V>
-
- Type Parameters:
T- The first object's type.U- The second object's type.V- The third object's type.
public class Triple<T,U,V> extends java.lang.ObjectRelationship between three typed objects.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)TgetFirst()Returns the first object.UgetSecond()Returns the second object.VgetThird()Returns the third object.inthashCode()voidsetFirst(T first)Sets the first object.voidsetSecond(U second)Sets the second object.voidsetThird(V third)Sets the third object.java.lang.StringtoString()
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
getFirst
public T getFirst()
Returns the first object.- Returns:
- The first object.
-
getSecond
public U getSecond()
Returns the second object.- Returns:
- The second object.
-
getThird
public V getThird()
Returns the third object.- Returns:
- The third object.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
setFirst
public void setFirst(T first)
Sets the first object.- Parameters:
first- The first object.
-
setSecond
public void setSecond(U second)
Sets the second object.- Parameters:
second- The second object.
-
setThird
public void setThird(V third)
Sets the third object.- Parameters:
third- The third object.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-