MCPcopy Create free account
hub / github.com/davidgiven/luje / get

Method get

lib/java/util/ArrayList.java:335–345  ·  view source on GitHub ↗
(int location)

Source from the content-addressed store, hash-verified

333 }
334
335 @Override
336 public E get(int location) {
337 if (location < 0 || location >= size) {
338 throw new IndexOutOfBoundsException(
339 // luni.0A=Index: {0}, Size: {1}
340 Messages.getString("luni.0A", //$NON-NLS-1$
341 Integer.valueOf(location),
342 Integer.valueOf(size)));
343 }
344 return array[firstIndex + location];
345 }
346
347 private void growAtEnd(int required) {
348 if (array.length - size >= required) {

Callers

nothing calls this directly

Calls 2

getStringMethod · 0.95
valueOfMethod · 0.95

Tested by

no test coverage detected