util
Class MutablePair<A,B>
java.lang.Object
util.Pair<A,B>
util.MutablePair<A,B>
public class MutablePair<A,B>
- extends Pair<A,B>
MutablePair
public MutablePair()
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>