|
Scala Library
|
|
scala/Product.scala]
trait
Product
extends AnyRefProduct defines access functions for instances
of products, in particular case classes.| Method Summary | |
abstract def
|
productArity
: Int
return k for a product
A(x_1,...,x_k) |
abstract def
|
productElement
(n : Int) : Any
for a product
A(x_1,...,x_k), returns x_(n+1)
for 0 <= n < k |
def
|
productPrefix
: java.lang.String
By default the empty string. Implementations may override this
method in order to prepend a string prefix to the result of the
toString methods.
|
| 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 |
A(x_1,...,x_k), returns x_(n+1)
for 0 <= n < kn - the index of the element to returnIndexOutOfBoundsException - n elements after the first elementabstract
def
productArity : Int
A(x_1,...,x_k)
def
productPrefix : java.lang.String
|
Scala Library
|
|