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
Serializable, java.io.Serializable, Product3[T1, T2, T3], Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Tuple3
  2. Serializable
  3. Serializable
  4. Product3
  5. Product
  6. Equals
  7. AnyRef
  8. 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. All

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 invert[El1, CC1[X] <: TraversableOnce[X], El2, CC2[X] <: TraversableOnce[X], El3, CC3[X] <: TraversableOnce[X], That](implicit w1: <:<[T1, CC1[El1]], w2: <:<[T2, CC2[El2]], w3: <:<[T3, CC3[El3]], bf: CanBuildFrom[CC1[_], (El1, El2, El3), That]): That
    Implicit
    This member is added by an implicit conversion from (T1, T2, T3) to Ops[T1, T2, T3] performed by method tuple3ToZippedOps in scala.Predef.
    Definition Classes
    Ops
  5. def productArity: Int

    The arity of this product.

    The arity of this product.

    returns

    3

    Definition Classes
    Product3Product
  6. 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
  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
  8. def zipped[El1, Repr1, El2, Repr2, El3, Repr3](implicit w1: (T1) ⇒ TraversableLike[El1, Repr1], w2: (T2) ⇒ IterableLike[El2, Repr2], w3: (T3) ⇒ IterableLike[El3, Repr3]): Tuple3Zipped[El1, Repr1, El2, Repr2, El3, Repr3]
    Implicit
    This member is added by an implicit conversion from (T1, T2, T3) to Ops[T1, T2, T3] performed by method tuple3ToZippedOps in scala.Predef.
    Definition Classes
    Ops