| Constructor and Description |
|---|
Versions() |
| Modifier and Type | Method and Description |
|---|---|
static Version |
addSnapshot(Version version)
Create a version from the given one and set to it the
snapshot state to true. |
static boolean |
equals(String version0,
String version1)
Tests if two versions are equals.
|
static boolean |
greaterThan(String version0,
String version1)
Tests if the first version is greater than the second version.
|
static Version |
removeSnapshot(Version version)
Create a version from the given one and set to it the
snapshot state to false. |
static boolean |
smallerThan(String version0,
String version1)
Tests if the first version is smaller than the second version.
|
static Version |
valueOf(String version)
Shortcut method to get a version from his string representation.
|
public static Version valueOf(String version)
version - string representation of the versionpublic static boolean equals(String version0, String version1)
version0 - the first versionversion1 - the second versiontrue if versions are equals, false otherwise.public static boolean smallerThan(String version0, String version1)
version0 - the first versionversion1 - the second versiontrue if version0 is before version1,
false otherwise.public static boolean greaterThan(String version0, String version1)
version0 - the first versionversion1 - the second versiontrue if version0 is after version1,
false otherwise.public static Version addSnapshot(Version version)
snapshot state to true.version - version to clonesnapshot state to trueIllegalArgumentException - if snapshot state is already set to true on
the given version.public static Version removeSnapshot(Version version)
snapshot state to false.version - version to clonesnapshot state to trueIllegalArgumentException - if snapshot state is already set to false on
the given versionCopyright © 2004–2014 CodeLutin. All rights reserved.