public final class Version
extends java.lang.Object
| Constructor and Description |
|---|
Version() |
| Modifier and Type | Method and Description |
|---|---|
static SerialisablePair<java.lang.String,java.lang.String> |
getParsedVersionInformation(java.lang.Class<?> cls)
Gets the version information from the version file that is part of the class bundle containing
the designated class and parses the information.
|
static java.lang.String[] |
getReleaseInformation(java.lang.String release)
Parses the release information from the designated string.
|
static Pair<java.lang.String,java.lang.Boolean> |
getVersionInformation(java.lang.Class<?> cls)
Gets the version information from the version file that is part of the
class bundle containing the designated class.
|
static java.util.Comparator<java.lang.String> |
getVersionStringComparatorInstance()
Returns a comparator that can be used to compare version strings like
1.5.1. |
public static java.util.Comparator<java.lang.String> getVersionStringComparatorInstance()
1.5.1.public static Pair<java.lang.String,java.lang.Boolean> getVersionInformation(java.lang.Class<?> cls)
cls - The class relative to which to load the version file.public static SerialisablePair<java.lang.String,java.lang.String> getParsedVersionInformation(java.lang.Class<?> cls)
<unknown> if not available.cls - The class relative to which to load the version file.<unknown> if not available.getVersionInformation(Class)public static java.lang.String[] getReleaseInformation(java.lang.String release)
release - The release information as printed on console.null) and the build date parsed
from the release or 3 null elements if the release information cannot be
parsed.