Class NotPredicate<T>

  • All Implemented Interfaces:
    Matchable<T>

    public class NotPredicate<T>
    extends Predicate<T>
    implements Matchable<T>
    Negates the result of another predicate.
    • Constructor Detail

      • NotPredicate

        protected NotPredicate​(Predicate<T> that)
    • Method Detail

      • getChildCount

        public final int getChildCount()
        Description copied from class: Predicate
        Same as getChildren().size()
        Overrides:
        getChildCount in class Predicate<T>
      • match

        public boolean match​(T object)
                      throws com.google.gwtorm.server.OrmException
        Description copied from interface: Matchable
        Does this predicate match this object?
        Specified by:
        match in interface Matchable<T>
        Throws:
        com.google.gwtorm.server.OrmException
      • getCost

        public int getCost()
        Specified by:
        getCost in interface Matchable<T>
        Returns:
        a cost estimate to run this predicate, higher figures cost more.