de.espirit.common.util
Interface ElementProvider<E>

All Known Implementing Classes:
HistoryProvider.RevisionProvider

public interface ElementProvider<E>

Since:
4.0.49

Field Summary
static int ALL
          Do not limit to a maximum number of elements.
 
Method Summary
 List<E> getElements(E first, E last, int max, Filter<E> filter)
          Get a list of elements in the given range including a defined maximum number of elements that pass the provided filter.
 

Field Detail

ALL

static final int ALL
Do not limit to a maximum number of elements.

Since:
4.0.49
See Also:
Constant Field Values
Method Detail

getElements

List<E> getElements(E first,
                    E last,
                    int max,
                    Filter<E> filter)
Get a list of elements in the given range including a defined maximum number of elements that pass the provided filter.

Parameters:
first - The first element to include, if null, the first available element.
last - The last element to include, if null, the last available element.
max - The maximum number of matching elements, if ElementProvider.ALL, all available elements.
filter - The filter to be passed, if null, any element will pass.
Returns:
A list of elements.
Since:
4.0.49


Copyright © 2012 e-Spirit AG. All Rights Reserved. Build 4.2.480