public abstract class RemoteBlobIterableImpl<T> extends java.lang.Object implements java.lang.Iterable<RemoteBlob>, java.util.Iterator<RemoteBlob>
Iterable<RemoteBlob>
instances a bit easier.Constructor and Description |
---|
RemoteBlobIterableImpl() |
Modifier and Type | Method and Description |
---|---|
protected abstract java.util.Optional<RemoteBlob> |
accept(T storageItem)
Convert the storage item into a
RemoteBlob and check for acceptablility. |
boolean |
hasNext() |
java.util.Iterator<RemoteBlob> |
iterator() |
protected abstract void |
iteratorInit()
Initialise for iterating.
|
RemoteBlob |
next() |
protected abstract java.util.Optional<T> |
nextStorageItem()
Return the next storage itme.
|
public java.util.Iterator<RemoteBlob> iterator()
iterator
in interface java.lang.Iterable<RemoteBlob>
protected abstract void iteratorInit()
protected abstract java.util.Optional<T> nextStorageItem() throws java.util.NoSuchElementException
java.util.NoSuchElementException
- if there are no items are left to iterate over.protected abstract java.util.Optional<RemoteBlob> accept(T storageItem)
RemoteBlob
and check for acceptablility.storageItem
- the storage item.RemoteBlob
public boolean hasNext()
hasNext
in interface java.util.Iterator<RemoteBlob>
public RemoteBlob next()
next
in interface java.util.Iterator<RemoteBlob>