T - the type of the items to returnC - the type of criteria used to filterpublic abstract class BaseRangeFinder<T,C> extends Object implements RangeFinder<T,C>
| Constructor and Description |
|---|
BaseRangeFinder() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract long |
computeFullRequestSize(C criteria)
Returns the total number of items available.
|
protected abstract List<T> |
computeResultList(Range range,
C criteria)
Returns a sub list of items corresponding to the required range and criteria.
|
Result<T> |
find(Range range,
C criteria)
Find items according a range and a criteria.
|
public Result<T> find(Range range, C criteria)
RangeFinderfind in interface RangeFinder<T,C>range - the rangecriteria - the criteriaprotected abstract List<T> computeResultList(Range range, C criteria)
range - the rangecriteria - the criteriaprotected abstract long computeFullRequestSize(C criteria)
criteria - the request criteriaCopyright © 2013-2016–2016 SeedStack. All rights reserved.