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
    • 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