[#8939] Minor adaptations have been made to use this class in jOOQ directly.
| Modifier and Type | Field and Description |
|---|---|
| public static final FlywayVersion | EMPTY
Version for an empty schema. |
| private static final Pattern | SPLIT_REGEX
Regex for matching proper version format |
| private final List | versionParts
The individual parts this version string is composed of. |
| Access | Constructor and Description |
|---|---|
| private | FlywayVersion(String
The version in one of the following formats: 6, 6.0, 005, 1.2.3.4, 201004200021. version)null
means that this version refers to an empty schema.Creates a Version using this version string. |
| Modifier and Type | Method and Description |
|---|---|
| public int | compareTo(FlywayVersion
the object to be compared. o)Implements java. |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| public static FlywayVersion | Returns: The FlywayVersionThe version String. The value version)current will be interpreted as FlywayVersion.CURRENT,
a marker for the latest version that has been applied to the database.Create a FlywayVersion from a version String. |
| private BigInteger | |
| public int | |
| private List |
| EMPTY | back to summary |
|---|---|
| public static final FlywayVersion EMPTY Version for an empty schema. | |
| SPLIT_REGEX | back to summary |
|---|---|
| private static final Pattern SPLIT_REGEX Regex for matching proper version format | |
| versionParts | back to summary |
|---|---|
| private final List<BigInteger> versionParts The individual parts this version string is composed of. Ex. 1.2.3.4.0 -> [1, 2, 3, 4, 0] | |
| FlywayVersion | back to summary |
|---|---|
| private FlywayVersion(String version) Creates a Version using this version string.
| |
| compareTo | back to summary |
|---|---|
| public int compareTo(FlywayVersion o) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| fromVersion | back to summary |
|---|---|
| public static FlywayVersion fromVersion(String version) Create a FlywayVersion from a version String.
| |
| getOrZero | back to summary |
|---|---|
| private BigInteger getOrZero(List<BigInteger> elements, int i) | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| tokenize | back to summary |
|---|---|
| private List Splits this string into list of Long
| |