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 ClassesModifier and TypeInterfaceDescriptionstatic final class
A predicate that includes only a single field with the provided number.static enum
Built-in factories that filters based on the field number.static interface
static final class
A predicate that includes fields that are greater than the provider number.static final class
A predicate that includes fields that are lesser than the provider number.static final class
A predicate that includes all fields except the provided number.static final class
The opposite ofPredicate.RANGE
.static final class
A predicate that includes fields if they are within range of the provided numbers, min and max. -
Method Summary
-
Method Details
-
apply
Returns true if the field is included. -
apply
Returns true if the field is included.The predicate logic can be dynamic based on the contents of the message.
-