Creates and returns an unmodifiable view of the given int 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
(int[] array, int length)
| 199 | * @return an unmodifiable list view of the array |
| 200 | */ |
| 201 | public static List<Integer> unmodifiableView(int[] array, int length) |
| 202 | { |
| 203 | return Collections.unmodifiableList(view(array, length)); |
| 204 | } |
| 205 | |
| 206 | /** |
| 207 | * Creates and returns a view of the given int array that requires only |
no test coverage detected