(Object value)
| 1329 | } |
| 1330 | |
| 1331 | private static int toInt(Object value) { |
| 1332 | if (value == null) { |
| 1333 | throw new IllegalArgumentException("Index argument cannot be null"); |
| 1334 | } |
| 1335 | if (value instanceof Number) { |
| 1336 | return ((Number) value).intValue(); |
| 1337 | } |
| 1338 | return Integer.parseInt(value.toString()); |
| 1339 | } |
| 1340 | // overload matching the C# default parameter (second = null) |
| 1341 | public Object arraySlice(Object array, Object first) { |
| 1342 | return arraySlice(array, first, null); |
no test coverage detected