scala
trait Product1

[source: `scala/Product1.scala`]

`` `trait` Product1[+T1]
  `extends` Product

  Product1 is a cartesian product of 1 components

Direct Known Subclasses:
  Tuple1

Method Summary
`abstract def` | _1 : T1 projection of this product
`override def` | productArity : Int The arity of this product.
`override def` | productElement (n : Int) : Any Returns the n-th projection of this product if 0<=n<arity, otherwise null.

Methods inherited from Product
element, arity, productPrefix

Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized

Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf

Method Details

`override` `def` productArity : Int

  The arity of this product.

Returns
  1

Overrides
  Product.productArity

`override` `def` productElement(n : Int) : Any

  Returns the n-th projection of this product if 0<=n<arity, otherwise null.

Parameters
  `n -` number of the projection to be returned
Returns
  same as _(n+1)
Throws
  `IndexOutOfBoundsException -`

Overrides
  Product.productElement

`abstract` `def` _1 : T1

  projection of this product