org.yestech.lib.util
Class Pair<T1,T2>

java.lang.Object
  extended by org.yestech.lib.util.Pair<T1,T2>
All Implemented Interfaces:
java.io.Serializable, ITuple

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

Represents a tuple of 2

Version:
$Revision: $
Author:
Artie Copeland
See Also:
Serialized Form

Constructor Summary
Pair()
           
Pair(T1 first, T2 second)
           
 
Method Summary
static
<F,S> Pair<F,S>
create(F first, S second)
           
 boolean equals(java.lang.Object o)
           
 T1 getFirst()
           
 T2 getSecond()
           
 int hashCode()
           
 void setFirst(T1 first)
           
 void setSecond(T2 second)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Pair

public Pair()

Pair

public Pair(T1 first,
            T2 second)
Method Detail

getFirst

public T1 getFirst()

setFirst

public void setFirst(T1 first)

getSecond

public T2 getSecond()

setSecond

public void setSecond(T2 second)

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

create

public static <F,S> Pair<F,S> create(F first,
                                     S second)


Copyright © 2009 YES Technology Association. All Rights Reserved.