diff options
Diffstat (limited to 'src/library/scala/Product20.scala')
-rw-r--r-- | src/library/scala/Product20.scala | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/src/library/scala/Product20.scala b/src/library/scala/Product20.scala index fe7e0b1f4e..7fd355b462 100644 --- a/src/library/scala/Product20.scala +++ b/src/library/scala/Product20.scala @@ -7,9 +7,9 @@ ** |/ ** \* */ -// $Id: genprod.scala 9547 2007-01-03 16:34:59Z emir $ +// $Id: genprod.scala 10061 2007-02-20 18:06:07 +0100 (Tue, 20 Feb 2007) moors $ -// generated by genprod on Wed Jan 03 17:36:14 CET 2007 +// generated by genprod on Thu Apr 12 14:45:21 CEST 2007 package scala @@ -28,7 +28,23 @@ trait Product20[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12, + * The arity of this product. * @return 20 */ - override def arity = 20 + @deprecated override def arity = productArity + + /** + * The arity of this product. + * @return 20 + */ + override def productArity = 20 + + /** + * Returns the n-th projection of this product if 0<=n<arity, + * otherwise null. + * + * @param n number of the projection to be returned + * @return same as _(n+1) + * @throws IndexOutOfBoundsException + */ + @deprecated override def element(n: Int) = productElement(n) /** * Returns the n-th projection of this product if 0<=n<arity, @@ -38,7 +54,7 @@ trait Product20[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12, + * @return same as _(n+1) * @throws IndexOutOfBoundsException */ - override def element(n: Int) = n match { + override def productElement(n: Int) = n match { case 0 => _1 case 1 => _2 case 2 => _3 |