Creates and returns a view of the given double array that requires only a small object allocation. Changes to the list will be reflected in the array up to a point. If the modification would require increasing the capacity of the array, a new array will be allocated - at which point operations will
(double[] array, int length)
| 266 | * point of requiring the allocation of a new array |
| 267 | */ |
| 268 | public static DoubleList view(double[] array, int length) |
| 269 | { |
| 270 | if(length > array.length || length < 0) |
| 271 | throw new IllegalArgumentException("length must be non-negative and no more than the size of the array("+array.length+"), not " + length); |
| 272 | return new DoubleList(array, length); |
| 273 | } |
| 274 | } |
no outgoing calls
no test coverage detected