|
Scala 2.2.0.9153
|
abstract
trait
Product
extends
java.lang.Object with
scala.ScalaObjectCaseClass
defines access functions for instances
of case classes.Def Summary | |
abstract
|
def
arity
: scala.Int
return k for a product A(x_1,...,x_k))
|
abstract
|
def
element
(n: scala.Int)
: scala.Any
for a case class A(x_1,...,x_k)) , returns x_i
for 1 <= i < 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. |
Def Detail |
abstract
def
arity
: scala.Int
A(x_1,...,x_k))
abstract
def
element
(n: scala.Int): scala.Any
A(x_1,...,x_k))
, returns x_i
for 1 <= i < k
n -
the position of the n-th element
IndexOutOfBoundsException -
def
productPrefix
: java.lang.String