Tuple3

final case class Tuple3[+T1, +T2, +T3](_1: T1, _2: T2, _3: T3) extends Product3[T1, T2, T3]

A tuple of 3 elements; the canonical representation of a scala.Product3.

Value Params
_1

Element 1 of this Tuple3

_2

Element 2 of this Tuple3

_3

Element 3 of this Tuple3

Constructor

Create a new tuple with 3 elements. Note that it is more idiomatic to create a Tuple3 via (t1, t2, t3)

Source
Tuple3.scala
trait Product3[T1, T2, T3]
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

override def toString(): String
Definition Classes
Any
Source
Tuple3.scala

Inherited methods

override def productArity: Int

The arity of this product.

Returns

3

Definition Classes
Inherited from
Product3
Source
Product3.scala
@throws(scala.Predef.classOf[scala.IndexOutOfBoundsException])
override def productElement(n: Int): Any

Returns the n-th projection of this product if 0 <= n < productArity, otherwise throws an IndexOutOfBoundsException.

Value Params
n

number of the projection to be returned

Returns

same as ._(n+1), for example productElement(0) is the same as ._1.

Throws
IndexOutOfBoundsException

if the n is out of range(n < 0 || n >= 3).

Definition Classes
Inherited from
Product3
Source
Product3.scala

An iterator over the names of all the elements of this product.

Inherited from
Product
Source
Product.scala

An iterator over all the elements of this product.

Returns

in the default implementation, an Iterator[Any]

Inherited from
Product
Source
Product.scala