Class FilterDuplicatedIndexesByNamePredicate

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

public class FilterDuplicatedIndexesByNamePredicate extends Object implements Predicate<io.github.mfvanek.pg.model.index.DuplicatedIndexes>
Allows filter duplicated indexes by their name.
Since:
0.6.0
  • Field Details

    • exclusions

      protected final Set<String> exclusions
  • Method Details

    • test

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

      @Nonnull public static Predicate<io.github.mfvanek.pg.model.index.DuplicatedIndexes> of(@Nonnull Collection<String> exclusions)
    • of

      @Nonnull public static Predicate<io.github.mfvanek.pg.model.index.DuplicatedIndexes> of(@Nonnull String indexName)