public abstract class


extends Object
implements EnclosedIterable<T>
   ↳ com.atlassian.jira.ofbiz.DatabaseIterable<E>

Class Overview

A abstract implementation of EnclosedIterable that defers to an OfBizListIterator.

Note that the iteration order is up to the query that creates the OfBizListIterator.

This implementation is unbounded.


Public Constructors
DatabaseIterable(int size, Resolver<GenericValue, E> resolver)
Public Methods
final void foreach(Consumer<E> consumer)
boolean isEmpty()
final int size()
Protected Methods
abstract OfBizListIterator createListIterator()
Create a new iterator.
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.util.collect.EnclosedIterable
From interface com.atlassian.jira.util.collect.Sized

Public Constructors

public DatabaseIterable (int size, Resolver<GenericValue, E> resolver)

Public Methods

public final void foreach (Consumer<E> consumer)

public boolean isEmpty ()

public final int size ()

Protected Methods

protected abstract OfBizListIterator createListIterator ()

Create a new iterator.

  • an instance of OfBizListIterator