Package io.protostuff.runtime
Interface Predicate
-
- All Known Implementing Classes:
Predicate.EQ,Predicate.GT,Predicate.LT,Predicate.NOTEQ,Predicate.NOTRANGE,Predicate.RANGE
public interface PredicateA filter for the fields that need to be included.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classPredicate.EQA predicate that includes only a single field with the provided number.static classPredicate.FactoriesBuilt-in factories that filters based on the field number.static interfacePredicate.Factorystatic classPredicate.GTA predicate that includes fields that are greater than the provider number.static classPredicate.LTA predicate that includes fields that are lesser than the provider number.static classPredicate.NOTEQA predicate that includes all fields except the provided number.static classPredicate.NOTRANGEThe opposite ofPredicate.RANGE.static classPredicate.RANGEA predicate that includes fields if they are within range of the provided numbers, min and max.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanapply(Field<?> f)Returns true if the field is included.booleanapply(Field<?> f, java.lang.Object message)Returns true if the field is included.
-