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