public class MutablePair<T1,T2>
extends Object
implements scala.Product2<T1,T2>, scala.Product, scala.Serializable
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(Object that) |
String |
toString() |
MutablePair<T1,T2> |
update(T1 n1,
T2 n2)
Updates this pair with new values and returns itself
|
public MutablePair<T1,T2> update(T1 n1, T2 n2)
public String toString()
toString
in class Object
public boolean canEqual(Object that)
canEqual
in interface scala.Equals