Class FilterTablesBySizePredicate

java.lang.Object
io.github.mfvanek.pg.checks.predicates.FilterTablesBySizePredicate
All Implemented Interfaces:
Predicate<io.github.mfvanek.pg.model.table.TableSizeAware>

public class FilterTablesBySizePredicate extends Object implements Predicate<io.github.mfvanek.pg.model.table.TableSizeAware>
Allows filter tables by their size.
Since:
0.6.0
See Also:
  • TableSizeAware
  • Field Details

    • thresholdInBytes

      protected final long thresholdInBytes
  • Method Details

    • test

      public boolean test(@Nonnull io.github.mfvanek.pg.model.table.TableSizeAware tableSizeAware)
      Specified by:
      test in interface Predicate<io.github.mfvanek.pg.model.table.TableSizeAware>
    • of

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