()
| 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(); |
nothing calls this directly
no test coverage detected