Class LimitPredicate<T>

All Implemented Interfaces:
Matchable<T>

public class LimitPredicate<T> extends IntPredicate<T> implements Matchable<T>
  • Constructor Details

  • Method Details

    • getLimit

      public static Integer getLimit(String fieldName, Predicate<?> p)
    • match

      public boolean match(T object)
      Description copied from interface: Matchable
      Does this predicate match this object?
      Specified by:
      match in interface Matchable<T>
    • getCost

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