public enum Version extends Enum<Version>
| Enum Constant and Description |
|---|
V21 |
V22 |
V23 |
V231 |
V24 |
V25 |
V251 |
V26 |
| Modifier and Type | Method and Description |
|---|---|
String |
getPackageVersion() |
String |
getVersion() |
boolean |
isGreaterThan(Version theVersion)
Returns true if this version is greater than the
specified version
|
static Version |
latestVersion() |
static boolean |
supportsVersion(String version) |
static Version |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Version[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static Version |
versionOf(String version) |
public static Version[] values()
for (Version c : Version.values()) System.out.println(c);
public static Version valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic String getVersion()
public String getPackageVersion()
public static boolean supportsVersion(String version)
public static Version versionOf(String version)
version - The version string, e.g. "2.1" or "2.6"public boolean isGreaterThan(Version theVersion)
public static Version latestVersion()
Copyright © 2001-2012 University Health Network. All Rights Reserved.