Class CountProcedure<T>

All Implemented Interfaces:
Serializable, Consumer<T>, Procedure<T>

public class CountProcedure<T> extends Object implements Procedure<T>
Applies a predicate to an object and increments a count if it returns true.
See Also:
  • Constructor Details

    • CountProcedure

      public CountProcedure(Predicate<? super T> newPredicate)
    • CountProcedure

      public CountProcedure()
  • Method Details

    • value

      public void value(T object)
      Specified by:
      value in interface Procedure<T>
    • getCount

      public int getCount()