Package de.espirit.common.util
Interface ElementProvider<E>
- All Known Implementing Classes:
HistoryProvider.RevisionProvider
public interface ElementProvider<E>
A generic type for providing a list of elements within defined limiting parameters.
- Since:
- 4.0.49
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Do not limit to a maximum number of elements. -
Method Summary
-
Field Details
-
ALL
static final int ALLDo not limit to a maximum number of elements.- Since:
- 4.0.49
- See Also:
-
-
Method Details
-
getElements
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, ifnull
, the first available element.last
- The last element to include, ifnull
, the last available element.max
- The maximum number of matching elements, ifALL
, all available elements.filter
- The filter to be passed, ifnull
, any element will pass.- Returns:
- A list of elements.
- Since:
- 4.0.49
-