Package ac.simons.neo4j.migrations.core
Class MigrationVersion
java.lang.Object
ac.simons.neo4j.migrations.core.MigrationVersion
A migrations version.
- Since:
- 0.0.1
- Author:
- Michael J. Simons
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
boolean
getValue()
int
hashCode()
static MigrationVersion
Creates aMigrationVersion
from the given class or file nametoString()
static MigrationVersion
Creates aMigrationVersion
with a given value (the unique version identifier).
-
Method Details
-
canParse
- 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
-
parse
Creates aMigrationVersion
from the given class or file name- Parameters:
name
- A class or file name- Returns:
- A
MigrationVersion
- Throws:
MigrationsException
- if the name cannot be parsed. You might check {canParse(String)
} prior to using this method- Since:
- 2.2.0
-
withValue
Creates aMigrationVersion
with a given value (the unique version identifier).- Parameters:
value
- The unique version identifier- Returns:
- A
MigrationVersion
- Since:
- 2.2.0
-
getValue
- Returns:
- the
String
value representing this version
-
toString
-
equals
-
hashCode
public int hashCode()
-