util
Class MutablePair<A,B>

java.lang.Object
  extended by util.Pair<A,B>
      extended by util.MutablePair<A,B>

public class MutablePair<A,B>
extends Pair<A,B>


Constructor Summary
MutablePair()
           
 
Method Summary
 boolean equals(Object obj)
           
 A getFirst()
           
 B getSecond()
           
 void setFirst(A first)
           
 void setSecond(B second)
           
 
Methods inherited from class util.Pair
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MutablePair

public MutablePair()
Method Detail

getFirst

public A getFirst()
Overrides:
getFirst in class Pair<A,B>
Returns:
the first component of the pair

getSecond

public B getSecond()
Overrides:
getSecond in class Pair<A,B>
Returns:
the second component of the pair

setFirst

public final void setFirst(A first)

setSecond

public final void setSecond(B second)

equals

public boolean equals(Object obj)
Overrides:
equals in class Pair<A,B>