org.restlet.ext.rdf
Class Triple<T,U,V>

java.lang.Object
  extended by 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 Object

Relationship between three typed objects.

Author:
Jerome Louvel

Constructor Summary
Triple(T first, U second, V third)
          Constructor.
 
Method Summary
 boolean equals(Object other)
           
 T getFirst()
          Returns the first object.
 U getSecond()
          Returns the second object.
 V getThird()
          Returns the third object.
 int hashCode()
          
 void setFirst(T first)
          Sets the first object.
 void setSecond(U second)
          Sets the second object.
 void setThird(V third)
          Sets the third object.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Triple

public Triple(T first,
              U second,
              V third)
Constructor.

Parameters:
first - The first object.
second - The second object.
third - The third object.
Method Detail

equals

public boolean equals(Object other)
Overrides:
equals in class 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:
hashCode in class 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 String toString()
Overrides:
toString in class Object


Copyright © 2005-2013 Restlet.