scala

class Tuple2

[source: scala/Tuple2.scala]

case class Tuple2[+T1, +T2](val _1 : T1, val _2 : T2)
extends Product2[T1, T2]
Tuple2 is the canonical representation of a @see Product2
Method Summary
override def equals (arg0 : Any) : Boolean
override def hashCode : Int
override def productPrefix : java.lang.String
By default the empty string. Implementations may override this method in order to prepend a string prefix to the result of the toString methods.
def swap : (T2, T1)
Swap the elements of the tuple
override def toString : java.lang.String
Methods inherited from Product2
productArity, productElement
Methods inherited from AnyRef
getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
override def toString : java.lang.String

def swap : (T2, T1)
Swap the elements of the tuple

override def hashCode : Int

override def equals(arg0 : Any) : Boolean

override def productPrefix : java.lang.String
By default the empty string. Implementations may override this method in order to prepend a string prefix to the result of the toString methods.