Creates an returns an unmodifiable view of the given double array that requires only a small object allocation. @param array the array to wrap into an unmodifiable list @param length the number of values of the array to use, starting from zero @return an unmodifiable list view of the array
(double[] array, int length)
| 249 | * @return an unmodifiable list view of the array |
| 250 | */ |
| 251 | public static List<Double> unmodifiableView(double[] array, int length) |
| 252 | { |
| 253 | return Collections.unmodifiableList(view(array, length)); |
| 254 | } |
| 255 | |
| 256 | /** |
| 257 | * Creates and returns a view of the given double array that requires only |
no test coverage detected