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

Class IteratorEnumeration

classpath/java/util/Collections.java:203–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201 }
202
203 static class IteratorEnumeration<T> implements Enumeration<T> {
204 private final Iterator<T> it;
205
206 public IteratorEnumeration(Iterator<T> it) {
207 this.it = it;
208 }
209
210 public T nextElement() {
211 return it.next();
212 }
213
214 public boolean hasMoreElements() {
215 return it.hasNext();
216 }
217 }
218
219 static class SynchronizedCollection<T> implements Collection<T> {
220 protected final Object lock;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected