Packages

c

scala

Tuple3

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

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

_1

Element 1 of this Tuple3

_2

Element 2 of this Tuple3

_3

Element 3 of this Tuple3

Source
Tuple3.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Tuple3
  2. Serializable
  3. Product3
  4. Product
  5. Equals
  6. AnyRef
  7. Any
Implicitly
  1. by tuple3ToZippedOps
  2. by any2stringadd
  3. by StringFormat
  4. by Ensuring
  5. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Tuple3(_1: T1, _2: T2, _3: T3)

    Create a new tuple with 3 elements.

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

    _1

    Element 1 of this Tuple3

    _2

    Element 2 of this Tuple3

    _3

    Element 3 of this Tuple3

Value Members

  1. val _1: T1

    A projection of element 1 of this Product.

    A projection of element 1 of this Product.

    returns

    A projection of element 1.

    Definition Classes
    Tuple3Product3
  2. val _2: T2

    A projection of element 2 of this Product.

    A projection of element 2 of this Product.

    returns

    A projection of element 2.

    Definition Classes
    Tuple3Product3
  3. val _3: T3

    A projection of element 3 of this Product.

    A projection of element 3 of this Product.

    returns

    A projection of element 3.

    Definition Classes
    Tuple3Product3
  4. def productArity: Int

    The arity of this product.

    The arity of this product.

    returns

    3

    Definition Classes
    Product3Product
  5. def productElement(n: Int): Any

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

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

    n

    number of the projection to be returned

    returns

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

    Definition Classes
    Product3Product
    Annotations
    @throws(clazz = classOf[IndexOutOfBoundsException])
    Exceptions thrown

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

  6. def productElementNames: Iterator[String]

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

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

    Definition Classes
    Product
  7. def toString(): String

    Creates a String representation of this object.

    Creates a String representation of this object. The default representation is platform dependent. On the java platform it is the concatenation of the class name, "@", and the object's hashcode in hexadecimal.

    returns

    a String representation of the object.

    Definition Classes
    Tuple3 → AnyRef → Any

Deprecated Value Members

  1. def invert[El1, It1[a] <: Iterable[a], El2, It2[a] <: Iterable[a], El3, It3[a] <: Iterable[a], That](implicit w1: <:<[T1, It1[El1]], w2: <:<[T2, It2[El2]], w3: <:<[T3, It3[El3]], bf: BuildFrom[T1, (El1, El2, El3), That]): That
    Implicit
    This member is added by an implicit conversion from (T1, T2, T3) toOps[T1, T2, T3] performed by method tuple3ToZippedOps in scala.Predef.
    Definition Classes
    Ops
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use xs.lazyZip(yz).lazyZip(zs).map((_, _, _))

  2. def zipped[El1, It1 <: Iterable[El1], El2, It2 <: Iterable[El2], El3, It3 <: Iterable[El3]](implicit w1: (T1) => IterableOps[El1, Iterable, It1] with It1, w2: (T2) => IterableOps[El2, Iterable, It2] with It2, w3: (T3) => IterableOps[El3, Iterable, It3] with It3): Tuple3Zipped[El1, It1, El2, It2, El3, It3]
    Implicit
    This member is added by an implicit conversion from (T1, T2, T3) toOps[T1, T2, T3] performed by method tuple3ToZippedOps in scala.Predef.
    Definition Classes
    Ops
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use xs.lazyZip(ys).lazyZip(zs)