public class MigrationVersion extends Object implements Comparable<MigrationVersion>
| Modifier and Type | Method and Description |
|---|---|
String |
asString()
Return the trimmed version excluding version comment and un-parsable string.
|
int |
compareTo(MigrationVersion other) |
String |
getComment()
Return the version comment.
|
String |
getFull()
Return the full version.
|
String |
getRaw()
Return the version in raw form.
|
boolean |
isRepeatable()
Return true if this is a "repeatable" version.
|
String |
nextVersion()
Return the next version based on this version.
|
String |
normalised()
Return the trimmed version with any underscores replaced with '.'
|
static MigrationVersion |
parse(String raw)
Parse the raw version string into a MigrationVersion.
|
String |
toString() |
static String |
trim(String raw)
Parse the raw version string and just return the leading version number;
|
public boolean isRepeatable()
public String getComment()
public String asString()
public String normalised()
public String nextVersion()
public int compareTo(MigrationVersion other)
compareTo in interface Comparable<MigrationVersion>public static String trim(String raw)
public static MigrationVersion parse(String raw)
Copyright © 2016. All rights reserved.