public enum FssApiVersion extends java.lang.Enum<FssApiVersion> implements com.hds.commons.version.VersionKey<FssApiVersion>
| Enum Constant and Description |
|---|
UNSET |
VERSION_211 |
VERSION_300 |
VERSION_303 |
VERSION_310 |
VERSION_400 |
VERSION_410 |
VERSION_420 |
VERSION_430 |
VERSION_432 |
VERSION_440 |
VERSION_450 |
| Modifier and Type | Method and Description |
|---|---|
static FssApiVersion |
getLatest()
Returns the latest FssApiVersion.
|
static FssApiVersion |
getOldest()
Returns the oldest FssApiVersion
|
static java.util.Set<FssApiVersion> |
getSupportedVersionSet(FssApiVersion highestSupportedVersion)
Returns all versions except
UNSET that are less than or equal to the specified
version. |
static java.util.Set<FssApiVersion> |
getSupportedVersionSet(FssApiVersion lowestSupportedVersion,
FssApiVersion highestSupportedVersion)
Returns all versions between the specified two versions, inclusive.
|
static FssApiVersion |
getValueFromVersionString(java.lang.String versionString)
Returns the result of converting the specified versionString into a FssApiVersion.
|
static java.util.Set<FssApiVersion> |
getValuesFromStringSet(java.util.Set<java.lang.String> versionStrings)
Returns a set of FssApiVersion, each corresponding to an element in the provided set of
strings.
|
com.hds.commons.version.Version |
getVersion()
Returns this object represented as a
Version. |
java.lang.String |
getVersionString()
Returns the String representation of this FssApiVersion version number.
|
boolean |
isGreaterThan(FssApiVersion version)
Returns true if this version is greater than the specified version; false otherwise.
|
boolean |
isGreaterThanOrEqualTo(FssApiVersion version)
Returns true if this version is greater than or equal to the specified version; false
otherwise.
|
boolean |
isLessThan(FssApiVersion version)
Returns true if this version is less than the specified version; false otherwise.
|
boolean |
isLessThanOrEqualTo(FssApiVersion version)
Returns true if this version is less than or equal to the specified version; false otherwise.
|
java.lang.String |
toString()
Returns the version string for this object.
|
static FssApiVersion |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FssApiVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FssApiVersion UNSET
public static final FssApiVersion VERSION_211
public static final FssApiVersion VERSION_300
public static final FssApiVersion VERSION_303
public static final FssApiVersion VERSION_310
public static final FssApiVersion VERSION_400
public static final FssApiVersion VERSION_410
public static final FssApiVersion VERSION_420
public static final FssApiVersion VERSION_430
public static final FssApiVersion VERSION_432
public static final FssApiVersion VERSION_440
public static final FssApiVersion VERSION_450
public static FssApiVersion[] values()
for (FssApiVersion c : FssApiVersion.values()) System.out.println(c);
public static FssApiVersion valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static FssApiVersion getLatest()
public static FssApiVersion getOldest()
public boolean isGreaterThanOrEqualTo(FssApiVersion version)
isGreaterThanOrEqualTo in interface com.hds.commons.version.VersionKey<FssApiVersion>public boolean isGreaterThan(FssApiVersion version)
isGreaterThan in interface com.hds.commons.version.VersionKey<FssApiVersion>public boolean isLessThanOrEqualTo(FssApiVersion version)
isLessThanOrEqualTo in interface com.hds.commons.version.VersionKey<FssApiVersion>public boolean isLessThan(FssApiVersion version)
isLessThan in interface com.hds.commons.version.VersionKey<FssApiVersion>public java.lang.String getVersionString()
getVersionString in interface com.hds.commons.version.VersionKey<FssApiVersion>public com.hds.commons.version.Version getVersion()
Version.public static FssApiVersion getValueFromVersionString(java.lang.String versionString)
versionString - a dot (.) separated list of numberspublic static java.util.Set<FssApiVersion> getValuesFromStringSet(java.util.Set<java.lang.String> versionStrings)
getValueFromVersionString(String) for how parsing of individual versions is
accomplished.versionStrings - the set of strings to convert to a set of FssApiVersionspublic java.lang.String toString()
toString in class java.lang.Enum<FssApiVersion>getVersionString()public static java.util.Set<FssApiVersion> getSupportedVersionSet(FssApiVersion highestSupportedVersion)
UNSET that are less than or equal to the specified
version.highestSupportedVersion - only versions that are less than or equal to this version are
returnedUNSETpublic static java.util.Set<FssApiVersion> getSupportedVersionSet(FssApiVersion lowestSupportedVersion, FssApiVersion highestSupportedVersion)
lowestSupportedVersion - only versions that are greater than or equal to this version
are returnedhighestSupportedVersion - only versions that are less than or equal to this version are
returned