Interface ListSizeFinder<M extends Serializable>

All Superinterfaces:
Serializable
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ListSizeFinder<M extends Serializable> extends Serializable

Strategy for finding the size of a list of records. This is useful for pages using pagination with some instance of PageByIndexRangeFinder lazy loading the current page.

M
Record type of master list or NA if finding for the master list.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    getSize(M selectedMaster)
    Returns size of list records according to implementing search criteria.
  • Method Details

    • getSize

      int getSize(M selectedMaster) throws Exception
      Returns size of list records according to implementing search criteria.
      Parameters:
      selectedMaster - Selected record in master list or null for loading master list.
      Throws:
      Exception