Tuple1

final case class Tuple1[@specialized(Int, Long, Double) +T1](_1: T1) extends Product1[T1]

A tuple of 1 elements; the canonical representation of a scala.Product1.

Value Params
_1

Element 1 of this Tuple1

Constructor

Create a new tuple with 1 elements.

Source
Tuple1.scala
trait Product1[T1]
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

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

Inherited methods

override def productArity: Int

The arity of this product.

Returns

1

Definition Classes
Inherited from
Product1
Source
Product1.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 >= 1).

Definition Classes
Inherited from
Product1
Source
Product1.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