scala

trait Product4

[source: scala/Product4.scala]

trait Product4[+T1, +T2, +T3, +T4]
extends Product
Product4 is a cartesian product of 4 components
Direct Known Subclasses:
Tuple4

Method Summary
abstract def _1 : T1
projection of this product
abstract def _2 : T2
projection of this product
abstract def _3 : T3
projection of this product
abstract def _4 : T4
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
4
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

abstract def _2 : T2
projection of this product

abstract def _3 : T3
projection of this product

abstract def _4 : T4
projection of this product