Class CountDownPredicate<T>

java.lang.Object
org.apache.polaris.persistence.nosql.maintenance.spi.CountDownPredicate<T>
All Implemented Interfaces:
Predicate<T>

public final class CountDownPredicate<T> extends Object implements Predicate<T>
Predicate that yields true for the number of test(Object) invocations given to the constructor.
  • Constructor Details

    • CountDownPredicate

      public CountDownPredicate(int remaining)
  • Method Details

    • test

      public boolean test(T t)
      Specified by:
      test in interface Predicate<T>