Package org.opends.server.types
Class AbstractVirtualAttribute.GeneratorIterator
- java.lang.Object
-
- org.opends.server.types.AbstractVirtualAttribute.GeneratorIterator
-
- All Implemented Interfaces:
Iterator<ByteString>
- Enclosing class:
- AbstractVirtualAttribute
protected abstract static class AbstractVirtualAttribute.GeneratorIterator extends Object implements Iterator<ByteString>
This iterator implements the state management associated with iterators for its subclasses. Subclasses become simple generators that must implementnextItem()
.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GeneratorIterator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
ByteString
next()
protected abstract ByteString
nextItem()
Generates the next item as a ByteString, ornull
to indicate no more items will be generated.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfaceIterator<ByteString>
-
nextItem
protected abstract ByteString nextItem()
Generates the next item as a ByteString, ornull
to indicate no more items will be generated.- Returns:
- the next item as a ByteString, or
null
to indicate no more items will be generated.
-
next
public ByteString next()
- Specified by:
next
in interfaceIterator<ByteString>
-
-