MCPcopy Create free account
hub / github.com/ReadyTalk/avian / next

Method next

classpath/java/util/EnumSet.java:120–131  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

118 private boolean removeAllowed = false;
119
120 public T next() {
121 if (!hasNext()) {
122 throw new NoSuchElementException("EnumSet has no more elements");
123 }
124
125 int indexOfNextValue = nextIndex();
126 T element = elementType.getEnumConstants()[indexOfNextValue];
127 currentIndex = indexOfNextValue + 1;
128 removeAllowed = true;
129
130 return element;
131 }
132
133 public boolean hasNext() {
134 int indexOfNextValue = nextIndex();

Callers

nothing calls this directly

Calls 3

hasNextMethod · 0.95
nextIndexMethod · 0.95
getEnumConstantsMethod · 0.80

Tested by

no test coverage detected