/** * Lists the history records that match this filter and that are older than the specified offset record. * * @param offsetRecordId specifies the offset record (where to start from); pass {@code null} to start from the * most recent record in the history * @param limit the maximum number of records to return from the specified offset * @return a list of history records that match this filter and are older than the specified offset record */ public List<ExtensionJobHistoryRecord> list(String offsetRecordId, int limit) { return history.getRecords(PredicateUtils.allPredicate(this.constraints), offsetRecordId, limit); } }
private FilterPredicate(@NonNull Settings settings, @NonNull Set<WiFiBand> wiFiBands) { Predicate<WiFiDetail> ssidPredicate = makeSSIDPredicate(settings.getSSIDs()); Predicate<WiFiDetail> wiFiBandPredicate = EnumUtils.predicate(WiFiBand.class, wiFiBands, new WiFiBandTransformer()); Predicate<WiFiDetail> strengthPredicate = EnumUtils.predicate(Strength.class, settings.getStrengths(), new StrengthTransformer()); Predicate<WiFiDetail> securityPredicate = EnumUtils.predicate(Security.class, settings.getSecurities(), new SecurityTransformer()); List<Predicate<WiFiDetail>> predicates = Arrays.asList(ssidPredicate, wiFiBandPredicate, strengthPredicate, securityPredicate); this.predicate = PredicateUtils.allPredicate(CollectionUtils.select(predicates, new NoTruePredicate())); }