Class Predicate.NOTRANGE

java.lang.Object
io.protostuff.runtime.Predicate.NOTRANGE
All Implemented Interfaces:
Predicate, Predicate.Factory
Enclosing interface:
Predicate

public static final class Predicate.NOTRANGE extends Object implements Predicate, Predicate.Factory
The opposite of Predicate.RANGE.
  • Field Details

    • min

      final int min
    • max

      final int max
  • Constructor Details

    • NOTRANGE

      NOTRANGE(int min, int max)
  • Method Details

    • apply

      public boolean apply(Field<?> f)
      Description copied from interface: Predicate
      Returns true if the field is included.
      Specified by:
      apply in interface Predicate
    • apply

      public boolean apply(Field<?> f, Object message)
      Description copied from interface: Predicate
      Returns true if the field is included.

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

      Specified by:
      apply in interface Predicate
    • create

      public Predicate create(String[] args)
      Description copied from interface: Predicate.Factory
      Creates a new predicate based from the args.
      Specified by:
      create in interface Predicate.Factory