File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -22,14 +22,14 @@ final class TupleXXL private (es: IArray[Object]) extends Product {
22
22
23
23
def tailXXL : TupleXXL = {
24
24
assert(es.length > 23 )
25
- new TupleXXL (es.asInstanceOf [Array [Object ]].tail.asInstanceOf [IArray [Object ]])
25
+ new TupleXXL (es.asInstanceOf [Array [Object ]].tail.asInstanceOf [IArray [Object ]]) // TODO use IArray.tail
26
26
}
27
27
28
- def toArray : Array [Object ] = es.asInstanceOf [Array [Object ]].clone
28
+ def toArray : Array [Object ] = es.asInstanceOf [Array [Object ]].clone // TODO use IArray.toArray
29
29
}
30
30
object TupleXXL {
31
- def fromIterator (elems : Iterator [Any ]) = new TupleXXL (elems.map(_.asInstanceOf [Object ]).toArray.asInstanceOf [IArray [Object ]])
31
+ def fromIterator (elems : Iterator [Any ]) = new TupleXXL (elems.map(_.asInstanceOf [Object ]).toArray.asInstanceOf [IArray [Object ]]) // TODO use Iterator.toIArray
32
32
def fromIArray (elems : IArray [Object ]) = new TupleXXL (elems)
33
- def apply (elems : Any * ) = new TupleXXL (elems.asInstanceOf [Seq [Object ]].toArray. asInstanceOf [ IArray [ Object ]] )
34
- def unapplySeq (x : TupleXXL ): Option [Seq [Any ]] = Some (x.elems.asInstanceOf [Array [Object ]].toSeq)
33
+ def apply (elems : Any * ) = new TupleXXL (IArray ( elems.asInstanceOf [Seq [AnyRef ]] : _* ) )
34
+ def unapplySeq (x : TupleXXL ): Option [Seq [Any ]] = Some (x.elems.asInstanceOf [Array [Object ]].toSeq) // TODO use IArray.toSeq
35
35
}
Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ object DynamicTuple {
173
173
case _ =>
174
174
xs match {
175
175
case xs : TupleXXL => xs
176
- case xs => TupleXXL .fromIArray(xs.productIterator.map(_.asInstanceOf [Object ]).toArray.asInstanceOf [IArray [Object ]])
176
+ case xs => TupleXXL .fromIArray(xs.productIterator.map(_.asInstanceOf [Object ]).toArray.asInstanceOf [IArray [Object ]]) // TODO use Iterator.toIArray
177
177
}
178
178
}).asInstanceOf [T ]
179
179
You can’t perform that action at this time.
0 commit comments