Class MigrationVersion

java.lang.Object
ac.simons.neo4j.migrations.core.MigrationVersion

public final class MigrationVersion extends Object
A migrations version.
Since:
0.0.1
Author:
Michael J. Simons
  • Method Details

    • canParse

      public static boolean canParse(String pathOrUrl)
      Parameters:
      pathOrUrl - A string representing either a path or an URL.
      Returns:
      true when the given path or URL can be parsed into a valid MigrationVersion
    • getValue

      public String getValue()
      Returns:
      the String value representing this version
    • isRepeatable

      @Deprecated public boolean isRepeatable()
      Deprecated.
      since 1.14.0, it should not have been public in the first place, no replacement
      Returns:
      true if this version can be safely applied multiple times, even on checksum changes
      Since:
      1.13.3
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object