public abstract class DatabaseIterable<E> extends Object implements EnclosedIterable<E>
EnclosedIterable
that defers to an OfBizListIterator
.
Note that the iteration order is up to the query that creates the OfBizListIterator
.
This implementation is unbounded.
EnclosedIterable.Functions, EnclosedIterable.ListResolver<T>
Constructor and Description |
---|
DatabaseIterable(int size,
Resolver<org.ofbiz.core.entity.GenericValue,E> resolver) |
Modifier and Type | Method and Description |
---|---|
protected abstract OfBizListIterator |
createListIterator()
Create a new iterator.
|
void |
foreach(Consumer<E> consumer)
Apply the sink to all elements in the Collection.
|
boolean |
isEmpty() |
int |
size() |
public final void foreach(Consumer<E> consumer)
EnclosedIterable
foreach
in interface EnclosedIterable<E>
public final int size()
size
in interface EnclosedIterable<E>
size
in interface Sized
EnclosedIterable.foreach(Consumer)
. Be careful depending on this size
being exact, as in many cases its best efforts value or may be unstable due to concurrent changes.public boolean isEmpty()
isEmpty
in interface EnclosedIterable<E>
isEmpty
in interface Sized
protected abstract OfBizListIterator createListIterator()
Copyright © 2002-2024 Atlassian. All Rights Reserved.