public class MutablePair<T1,T2>
extends java.lang.Object
implements scala.Product2<T1,T2>, scala.Product, scala.Serializable
param: _1 Element 1 of this MutablePair param: _2 Element 2 of this MutablePair
Constructor and Description |
---|
MutablePair()
No-arg constructor for serialization
|
MutablePair(T1 _1,
T2 _2) |
Modifier and Type | Method and Description |
---|---|
T1 |
_1() |
T2 |
_2() |
boolean |
canEqual(java.lang.Object that) |
java.lang.String |
toString() |
MutablePair<T1,T2> |
update(T1 n1,
T2 n2)
Updates this pair with new values and returns itself
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public MutablePair<T1,T2> update(T1 n1, T2 n2)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean canEqual(java.lang.Object that)
canEqual
in interface scala.Equals