class UniqueChainedAmetysObjectIterable.UniqueChainedIterator extends Object implements AmetysObjectIterator<A>
Modifier and Type | Field and Description |
---|---|
private int |
_currentIterator |
private Set<String> |
_identifiers |
private List<AmetysObjectIterator<A>> |
_its |
private A |
_nextObject |
private boolean |
_nextObjectSet |
private long |
_position |
Constructor and Description |
---|
UniqueChainedIterator(List<AmetysObjectIterator<A>> its) |
Modifier and Type | Method and Description |
---|---|
private boolean |
_fetchNextObject()
Set nextObject to the next object.
|
private boolean |
_internalHasNext() |
private A |
_internalNext() |
long |
getPosition()
Returns the current position within the iterator.
|
long |
getSize()
Returns the number of elements in the iterator.
|
boolean |
hasNext() |
A |
next() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
skip
forEachRemaining, remove
private Set<String> _identifiers
private A extends AmetysObject _nextObject
private boolean _nextObjectSet
private long _position
private int _currentIterator
private List<AmetysObjectIterator<A extends AmetysObject>> _its
public UniqueChainedIterator(List<AmetysObjectIterator<A>> its)
public long getSize()
AmetysObjectIterator
getSize
in interface AmetysObjectIterator<A extends AmetysObject>
public long getPosition()
AmetysObjectIterator
next
call.
getPosition
in interface AmetysObjectIterator<A extends AmetysObject>
public boolean hasNext()
hasNext
in interface Iterator<A extends AmetysObject>
private boolean _fetchNextObject()
private boolean _internalHasNext()
private A _internalNext()