public class StoredFssApiVersion<T> extends com.hds.commons.version.StoredVersion<FssApiVersion,T>
| Modifier and Type | Field and Description |
|---|---|
static com.hds.commons.version.VersionParser<FssApiVersion> |
PARSER |
| Constructor and Description |
|---|
StoredFssApiVersion(FssApiVersion version,
T object) |
| Modifier and Type | Method and Description |
|---|---|
static <T> com.hds.commons.collections.Pair<FssApiVersion,T> |
parse(java.lang.String storedVersion,
java.lang.Class<T> classOfT)
Parses the provided string.
|
static <T> com.hds.commons.collections.Pair<FssApiVersion,T> |
parse(java.lang.String storedVersion,
java.lang.reflect.Type typeOfClass)
Parses the provided string.
|
java.lang.String |
toString() |
public static final com.hds.commons.version.VersionParser<FssApiVersion> PARSER
public StoredFssApiVersion(FssApiVersion version, T object)
public static <T> com.hds.commons.collections.Pair<FssApiVersion,T> parse(java.lang.String storedVersion, java.lang.Class<T> classOfT) throws com.hds.commons.version.UnsupportedVersionException, java.lang.UnsupportedOperationException, com.hds.commons.exception.InvalidInputException
storedVersion - the provided string. This parameter cannot be nullclassOfT - the class to parse the JSON intocom.hds.commons.version.UnsupportedVersionException - thrown if the version of the JSON isn't supported by the provided JSON parserjava.lang.UnsupportedOperationException - thrown if the given class cannot be parsed for the JSON versioncom.hds.commons.exception.InvalidInputException - thrown if the provided input cannot be parsedpublic static <T> com.hds.commons.collections.Pair<FssApiVersion,T> parse(java.lang.String storedVersion, java.lang.reflect.Type typeOfClass) throws com.hds.commons.version.UnsupportedVersionException, java.lang.UnsupportedOperationException, com.hds.commons.exception.InvalidInputException
storedVersion - the provided string. This parameter cannot be nulltypeOfClass - the type of class to parse the JSON intocom.hds.commons.version.UnsupportedVersionException - thrown if the version of the JSON isn't supported by the provided JSON parserjava.lang.UnsupportedOperationException - thrown if the given class cannot be parsed for the JSON versioncom.hds.commons.exception.InvalidInputException - thrown if the provided input cannot be parsedpublic java.lang.String toString()
toString in class com.hds.commons.version.StoredVersion<FssApiVersion,T>