/** * Construct with an inner predicate and pageSize * results will be filtered via inner predicate * results will be natural ordered * throws {@link IllegalArgumentException} if pageSize is not greater than 0 * throws {@link IllegalArgumentException} if inner predicate is also {@link PagingPredicate} * * @param predicate the inner predicate through which results will be filtered * @param pageSize the page size */ public PagingPredicate(Predicate predicate, int pageSize) { this(pageSize); setInnerPredicate(predicate); }
/** * Construct with an inner predicate and pageSize * results will be filtered via inner predicate * results will be natural ordered * throws {@link IllegalArgumentException} if pageSize is not greater than 0 * throws {@link IllegalArgumentException} if inner predicate is also {@link PagingPredicate} * * @param predicate the inner predicate through which results will be filtered * @param pageSize the page size */ public PagingPredicate(Predicate predicate, int pageSize) { this(pageSize); setInnerPredicate(predicate); }
/** * Construct with an inner predicate, comparator and pageSize * results will be filtered via inner predicate * results will be ordered via comparator * throws {@link IllegalArgumentException} if pageSize is not greater than 0 * throws {@link IllegalArgumentException} if inner predicate is also {@link PagingPredicate} * * @param predicate the inner predicate through which results will be filtered * @param comparator the comparator through which results will be ordered * @param pageSize the page size */ public PagingPredicate(Predicate<K, V> predicate, Comparator<Map.Entry<K, V>> comparator, int pageSize) { this(pageSize); setInnerPredicate(predicate); this.comparator = comparator; }
/** * Construct with an inner predicate, comparator and pageSize * results will be filtered via inner predicate * results will be ordered via comparator * throws {@link IllegalArgumentException} if pageSize is not greater than 0 * throws {@link IllegalArgumentException} if inner predicate is also {@link PagingPredicate} * * @param predicate the inner predicate through which results will be filtered * @param comparator the comparator through which results will be ordered * @param pageSize the page size */ public PagingPredicate(Predicate<K, V> predicate, Comparator<Map.Entry<K, V>> comparator, int pageSize) { this(pageSize); setInnerPredicate(predicate); this.comparator = comparator; }