File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,16 @@ object IArray {
48
48
*/
49
49
def empty [T : ClassTag ]: IArray [T ] = new Array [T ](0 ).asInstanceOf
50
50
51
+ def emptyBooleanIArray = Array .emptyBooleanArray.asInstanceOf [IArray [Boolean ]]
52
+ def emptyByteIArray = Array .emptyByteArray.asInstanceOf [IArray [Byte ]]
53
+ def emptyCharIArray = Array .emptyCharArray.asInstanceOf [IArray [Char ]]
54
+ def emptyDoubleIArray = Array .emptyDoubleArray.asInstanceOf [IArray [Double ]]
55
+ def emptyFloatIArray = Array .emptyFloatArray.asInstanceOf [IArray [Float ]]
56
+ def emptyIntIArray = Array .emptyIntArray.asInstanceOf [IArray [Int ]]
57
+ def emptyLongIArray = Array .emptyLongArray.asInstanceOf [IArray [Long ]]
58
+ def emptyShortIArray = Array .emptyShortArray.asInstanceOf [IArray [Short ]]
59
+ def emptyObjectIArray = Array .emptyObjectArray.asInstanceOf [IArray [Object ]]
60
+
51
61
/** An immutable array with given elements.
52
62
*/
53
63
def apply [T : ClassTag ](xs : T * ): IArray [T ] = Array (xs : _* ).asInstanceOf
Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ object DynamicTuple {
185
185
}
186
186
187
187
def dynamicToIArray (self : Tuple ): IArray [Object ] = (self : Any ) match {
188
- case self : Unit => Array .emptyObjectArray.asInstanceOf [IArray [Object ]]
188
+ case self : Unit => Array .emptyObjectArray.asInstanceOf [IArray [Object ]] // TODO use IArray.emptyObjectIArray
189
189
case self : TupleXXL => self.elems
190
190
case self : Product => productToArray(self).asInstanceOf [IArray [Object ]]
191
191
}
You can’t perform that action at this time.
0 commit comments