Package migratedb.v1.core.api
Class MigrationPattern
- java.lang.Object
-
- migratedb.v1.core.api.MigrationPattern
-
public final class MigrationPattern extends Object
-
-
Constructor Summary
Constructors Constructor Description MigrationPattern(String migrationName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleananyMatchOrEmpty(String description, @Nullable List<MigrationPattern> patterns)static booleananyMatchOrEmpty(Version version, @Nullable List<MigrationPattern> patterns)booleanequals(Object obj)inthashCode()booleanmatches(@Nullable Version version, @Nullable String description)StringtoString()The migration name as passed to the constructor.
-
-
-
Constructor Detail
-
MigrationPattern
public MigrationPattern(String migrationName)
-
-
Method Detail
-
anyMatchOrEmpty
public static boolean anyMatchOrEmpty(Version version, @Nullable List<MigrationPattern> patterns)
- Returns:
trueiffpatternsis null/empty or one of them matches theversion.
-
anyMatchOrEmpty
public static boolean anyMatchOrEmpty(String description, @Nullable List<MigrationPattern> patterns)
- Returns:
trueiffpatternsis null/empty or one of them matches thedescription.
-
toString
public String toString()
The migration name as passed to the constructor.
-
-