equal
deleted
inserted
replaced
87 * ConcurrentModificationException}. |
87 * ConcurrentModificationException}. |
88 * |
88 * |
89 * @return an iterator over the elements contained in this set |
89 * @return an iterator over the elements contained in this set |
90 */ |
90 */ |
91 public Iterator<E> iterator() { |
91 public Iterator<E> iterator() { |
92 return new EnumSetIterator<E>(); |
92 return new EnumSetIterator<>(); |
93 } |
93 } |
94 |
94 |
95 private class EnumSetIterator<E extends Enum<E>> implements Iterator<E> { |
95 private class EnumSetIterator<E extends Enum<E>> implements Iterator<E> { |
96 /** |
96 /** |
97 * A bit vector representing the elements in the current "word" |
97 * A bit vector representing the elements in the current "word" |