Tuple5
final case class Tuple5[+T1, +T2, +T3, +T4, +T5](_1: T1, _2: T2, _3: T3, _4: T4, _5: T5) extends Product5[T1, T2, T3, T4, T5]
A tuple of 5 elements; the canonical representation of a scala.Product5.
- Value Params
- _1
Element 1 of this Tuple5
- _2
Element 2 of this Tuple5
- _3
Element 3 of this Tuple5
- _4
Element 4 of this Tuple5
- _5
Element 5 of this Tuple5
- Constructor
Create a new tuple with 5 elements. Note that it is more idiomatic to create a Tuple5 via
(t1, t2, t3, t4, t5)
- Source
- Tuple5.scala
Value members
Concrete methods
Inherited methods
@throws(scala.Predef.classOf[scala.IndexOutOfBoundsException])
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 exampleproductElement(0)
is the same as._1
.- Throws
- IndexOutOfBoundsException
if the
n
is out of range(n < 0 || n >= 5).
- Definition Classes
- Inherited from
- Product5
- Source
- Product5.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