org.opensaml.xml.util
Class Pair<T1,T2>

java.lang.Object
  extended by org.opensaml.xml.util.Pair<T1,T2>
Type Parameters:
T1 - type of the first object in the pair
T2 - type of the second object in the pair

public class Pair<T1,T2>
extends java.lang.Object

Container for a pair of objects.


Constructor Summary
Pair(T1 newFirst, T2 newSecond)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object o)
          
 T1 getFirst()
          Gets the first object in the pair.
 T2 getSecond()
          Gets the second object in the pair.
 int hashCode()
          
 void setFirst(T1 newFirst)
          Sets the first object in the pair.
 void setSecond(T2 newSecond)
          Sets the second object in the pair.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Pair

public Pair(T1 newFirst,
            T2 newSecond)
Constructor.

Parameters:
newFirst - first object in the pair
newSecond - second object in the pair
Method Detail

getFirst

public T1 getFirst()
Gets the first object in the pair.

Returns:
first object in the pair

setFirst

public void setFirst(T1 newFirst)
Sets the first object in the pair.

Parameters:
newFirst - first object in the pair

getSecond

public T2 getSecond()
Gets the second object in the pair.

Returns:
second object in the pair

setSecond

public void setSecond(T2 newSecond)
Sets the second object in the pair.

Parameters:
newSecond - second object in the pair

equals

public boolean equals(java.lang.Object o)

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object


Copyright © 2006-2012 Internet2. All Rights Reserved.