public class MutablePair<A,B>
可修改的pair
| 构造器和说明 |
|---|
MutablePair(A first,
B second)
可修改的pair
|
| 限定符和类型 | 方法和说明 |
|---|---|
A |
component1() |
B |
component2() |
MutablePair<A,B> |
copy(A first,
B second)
可修改的pair
|
boolean |
equals(java.lang.Object p) |
A |
getFirst() |
B |
getSecond() |
int |
hashCode() |
void |
setFirst(A p) |
void |
setSecond(B p) |
java.lang.String |
toString()
Returns string representation of the Pair including its first and second values.
|
public java.lang.String toString()
Returns string representation of the Pair including its first and second values.
public A getFirst()
public void setFirst(A p)
public B getSecond()
public void setSecond(B p)
public A component1()
public B component2()
public MutablePair<A,B> copy(A first, B second)
可修改的pair
public int hashCode()
public boolean equals(java.lang.Object p)