Interface Predicate

    • 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 of Predicate.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.
    • Method Detail

      • apply

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

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

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