MCPcopy Create free account
hub / github.com/EdwardRaff/JSAT / unmodifiableView

Method unmodifiableView

JSAT/src/jsat/utils/IntList.java:201–204  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 3

getKeptNumericMethod · 0.95
getKeptNominalMethod · 0.95
finishAddingMethod · 0.95

Calls 1

viewMethod · 0.95

Tested by

no test coverage detected