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

Method set

lib/java/util/AbstractSequentialList.java:81–90  ·  view source on GitHub ↗
(int location, E object)

Source from the content-addressed store, hash-verified

79 }
80
81 @Override
82 public E set(int location, E object) {
83 ListIterator<E> it = listIterator(location);
84 if (!it.hasNext()) {
85 throw new IndexOutOfBoundsException();
86 }
87 E result = it.next();
88 it.set(object);
89 return result;
90 }
91}

Callers

nothing calls this directly

Calls 4

listIteratorMethod · 0.95
hasNextMethod · 0.65
nextMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected