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:
-
-
-
Method Summary
static Predicate<io.github.mfvanek.pg.model.table.TableSizeAware>
of(long thresholdInBytes)
boolean
test(io.github.mfvanek.pg.model.table.TableSizeAware tableSizeAware)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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)