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 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 of Predicate.RANGE.
    static final class 
    A predicate that includes fields if they are within range of the provided numbers, min and max.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    apply(Field<?> f)
    Returns true if the field is included.
    boolean
    apply(Field<?> f, Object message)
    Returns true if the field is included.
  • Method Details

    • apply

      boolean apply(Field<?> f)
      Returns true if the field is included.
    • apply

      boolean apply(Field<?> f, Object message)
      Returns true if the field is included.

      The predicate logic can be dynamic based on the contents of the message.