Package io.protostuff.runtime
Interface Predicate
-
- All Known Implementing Classes:
Predicate.EQ
,Predicate.GT
,Predicate.LT
,Predicate.NOTEQ
,Predicate.NOTRANGE
,Predicate.RANGE
public interface Predicate
A filter for the fields that need to be included.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Predicate.EQ
A predicate that includes only a single field with the provided number.static class
Predicate.Factories
Built-in factories that filters based on the field number.static interface
Predicate.Factory
static class
Predicate.GT
A predicate that includes fields that are greater than the provider number.static class
Predicate.LT
A predicate that includes fields that are lesser than the provider number.static class
Predicate.NOTEQ
A predicate that includes all fields except the provided number.static class
Predicate.NOTRANGE
The opposite ofPredicate.RANGE
.static class
Predicate.RANGE
A 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 boolean
apply(Field<?> f)
Returns true if the field is included.boolean
apply(Field<?> f, java.lang.Object message)
Returns true if the field is included.
-