com.notuvy.util
Class Pair<T1,T2>

java.lang.Object
  extended by com.notuvy.util.Pair<T1,T2>

public abstract class Pair<T1,T2>
extends Object

A container for a pair of objects. Templatized so any types can be used. The data members can be accessed (by subclasses only) as "first" and "second". This object is immutable (but the objects it contains need not be). User: Murali Date: Jul 28, 2008 Time: 8:05:06 AM


Constructor Summary
protected Pair(T1 pFirst, T2 pSecond)
           
 
Method Summary
 boolean equals(Object pOther)
           
 boolean equalsPair(Pair<T1,T2> pOther)
           
protected  T1 getFirst()
           
protected  T2 getSecond()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pair

protected Pair(T1 pFirst,
               T2 pSecond)
Method Detail

getFirst

protected T1 getFirst()

getSecond

protected T2 getSecond()

equalsPair

public boolean equalsPair(Pair<T1,T2> pOther)

equals

public boolean equals(Object pOther)
Overrides:
equals in class Object


Copyright © 2013. All Rights Reserved.