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
-
-
Method Summary
static Predicate<io.github.mfvanek.pg.model.index.IndexSizeAware>
of(long thresholdInBytes)
boolean
test(io.github.mfvanek.pg.model.index.IndexSizeAware indexSizeAware)
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.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)