Class MigrationPattern


  • public final class MigrationPattern
    extends Object
    • Constructor Detail

      • MigrationPattern

        public MigrationPattern​(String migrationName)
    • Method Detail

      • anyMatchOrEmpty

        public static boolean anyMatchOrEmpty​(Version version,
                                              @Nullable List<MigrationPattern> patterns)
        Returns:
        true iff patterns is null/empty or one of them matches the version.
      • anyMatchOrEmpty

        public static boolean anyMatchOrEmpty​(String description,
                                              @Nullable List<MigrationPattern> patterns)
        Returns:
        true iff patterns is null/empty or one of them matches the description.
      • matches

        public boolean matches​(@Nullable Version version,
                               @Nullable String description)
      • toString

        public String toString()
        The migration name as passed to the constructor.
        Overrides:
        toString in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object