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

Method remove

lib/java/util/AbstractSequentialList.java:69–79  ·  view source on GitHub ↗
(int location)

Source from the content-addressed store, hash-verified

67 public abstract ListIterator<E> listIterator(int location);
68
69 @Override
70 public E remove(int location) {
71 try {
72 ListIterator<E> it = listIterator(location);
73 E result = it.next();
74 it.remove();
75 return result;
76 } catch (NoSuchElementException e) {
77 throw new IndexOutOfBoundsException();
78 }
79 }
80
81 @Override
82 public E set(int location, E object) {

Callers

nothing calls this directly

Calls 3

listIteratorMethod · 0.95
nextMethod · 0.65
removeMethod · 0.65

Tested by

no test coverage detected