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

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Do not limit to a maximum number of elements.
  • Method Summary

    Modifier and Type
    Method
    Description
    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 Details

    • ALL

      static final int ALL
      Do not limit to a maximum number of elements.
      Since:
      4.0.49
      See Also:
  • Method Details

    • 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 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