Package org.intermine.util
Class SynchronisedIterator<E>
- java.lang.Object
-
- org.intermine.util.SynchronisedIterator<E>
-
- Type Parameters:
E
- The element type of the iterator
- All Implemented Interfaces:
java.util.Iterator<E>
public class SynchronisedIterator<E> extends java.lang.Object implements java.util.Iterator<E>
An Iterator that passes through to an underlying Iterator, synchronising all calls.- Author:
- Matthew Wakeling
-
-
Constructor Summary
Constructors Constructor Description SynchronisedIterator(java.util.Iterator<E> iterator)
Constructs a SynchronisedIterator from an Iterator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
E
next()
void
remove()
-