MCPcopy
hub / github.com/google/guava / checkNonnegative

Method checkNonnegative

guava/src/com/google/common/collect/Iterators.java:877–881  ·  view source on GitHub ↗
(int position)

Source from the content-addressed store, hash-verified

875 }
876
877 static void checkNonnegative(int position) {
878 if (position < 0) {
879 throw new IndexOutOfBoundsException("position (" + position + ") must not be negative");
880 }
881 }
882
883 /**
884 * Returns the next element in {@code iterator} or {@code defaultValue} if the iterator is empty.

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
offsetMethod · 0.45

Calls

no outgoing calls

Tested by 1

setCountMethod · 0.36