org.restlet.util
Class Couple<T,U>

java.lang.Object
  extended by org.restlet.util.Couple<T,U>
Type Parameters:
T - The first object's type.
U - The second object's type.
Direct Known Subclasses:
Parameter

Deprecated. To be removed with no replacement.

@Deprecated
public class Couple<T,U>
extends Object

Relationship between two typed objects.

Author:
Jerome Louvel

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

Constructor Detail

Couple

public Couple(T first,
              U second)
Deprecated. 
Constructor.

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

equals

public boolean equals(Object other)
Deprecated. 
Overrides:
equals in class Object

getFirst

public T getFirst()
Deprecated. 
Returns the first object.

Returns:
The first object.

getSecond

public U getSecond()
Deprecated. 
Returns the second object.

Returns:
The second object.

hashCode

public int hashCode()
Deprecated. 

Overrides:
hashCode in class Object

setFirst

public void setFirst(T first)
Deprecated. 
Sets the first object.

Parameters:
first - The first object.

setSecond

public void setSecond(U second)
Deprecated. 
Sets the second object.

Parameters:
second - The second object.

toString

public String toString()
Deprecated. 
Overrides:
toString in class Object


Copyright © 2005-2013 Restlet.