MCPcopy Create free account
hub / github.com/antlr/codebuff / checkNonnegative

Method checkNonnegative

output/java_guava/1.4.19/Iterators.java:827–831  ·  view source on GitHub ↗
(int position)

Source from the content-addressed store, hash-verified

825
826
827 static void checkNonnegative(int position) {
828 if (position < 0) {
829 throw new IndexOutOfBoundsException("position (" + position + ") must not be negative");
830 }
831 }
832
833 /**
834 * Advances {@code iterator} {@code position + 1} times, returning the

Callers 15

getMethod · 0.95
getMethod · 0.95
hashKeysMethod · 0.45
linkedHashKeysMethod · 0.45
ArrayListSupplierMethod · 0.45
HashSetSupplierMethod · 0.45
LinkedHashSetSupplierMethod · 0.45
arrayListValuesMethod · 0.45
hashSetValuesMethod · 0.45
linkedHashSetValuesMethod · 0.45
setCountMethod · 0.45
ArrayBasedBuilderMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected