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

Method removeRange

lib/java/util/AbstractList.java:653–659  ·  view source on GitHub ↗

Removes the objects in the specified range from the start to the end index minus one. @param start the index at which to start removing. @param end the index after the last element to remove. @throws UnsupportedOperationException if removing from this list is not s

(int start, int end)

Source from the content-addressed store, hash-verified

651 * if {@code start < 0} or {@code start >= size()}.
652 */
653 protected void removeRange(int start, int end) {
654 Iterator<?> it = listIterator(start);
655 for (int i = start; i < end; i++) {
656 it.next();
657 it.remove();
658 }
659 }
660
661 /**
662 * Replaces the element at the specified location in this list with the

Callers 2

clearMethod · 0.95
removeRangeMethod · 0.45

Calls 3

listIteratorMethod · 0.95
nextMethod · 0.65
removeMethod · 0.65

Tested by

no test coverage detected