Class FilterIndexesBySizePredicate

java.lang.Object
io.github.mfvanek.pg.checks.predicates.FilterIndexesBySizePredicate
All Implemented Interfaces:
Predicate<io.github.mfvanek.pg.model.index.IndexSizeAware>

public class FilterIndexesBySizePredicate extends Object implements Predicate<io.github.mfvanek.pg.model.index.IndexSizeAware>
Allows filter indexes by their size.
Since:
0.6.0
  • Field Details

    • thresholdInBytes

      protected final long thresholdInBytes
  • Method Details

    • test

      public boolean test(@Nonnull io.github.mfvanek.pg.model.index.IndexSizeAware indexSizeAware)
      Specified by:
      test in interface Predicate<io.github.mfvanek.pg.model.index.IndexSizeAware>
    • of

      @Nonnull public static Predicate<io.github.mfvanek.pg.model.index.IndexSizeAware> of(long thresholdInBytes)