summaryrefslogtreecommitdiff
path: root/src/library/scala/Product3.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/library/scala/Product3.scala')
-rw-r--r--src/library/scala/Product3.scala24
1 files changed, 20 insertions, 4 deletions
diff --git a/src/library/scala/Product3.scala b/src/library/scala/Product3.scala
index 58ed57f556..caf7fd6d73 100644
--- a/src/library/scala/Product3.scala
+++ b/src/library/scala/Product3.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 Product3[+T1, +T2, +T3] extends Product {
* The arity of this product.
* @return 3
*/
- override def arity = 3
+ @deprecated override def arity = productArity
+
+ /**
+ * The arity of this product.
+ * @return 3
+ */
+ override def productArity = 3
+
+ /**
+ * 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 Product3[+T1, +T2, +T3] extends Product {
* @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