@OpenApiAll
public class FormatVersion
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
FormatVersion(java.lang.String applicationVersion,
int variant)
Create file format.
|
Modifier and Type | Method and Description |
---|---|
static FormatVersion |
deserialize(java.lang.String serialized) |
boolean |
equals(java.lang.Object o) |
int |
getVariant() |
java.lang.String |
getVersion() |
int |
hashCode() |
boolean |
isLaterThan(FormatVersion format)
Checks if this file format is later than provided parameter.
|
java.lang.String |
serialize() |
java.lang.String |
toString() |
public FormatVersion(java.lang.String applicationVersion, int variant)
applicationVersion
- application version.variant
- variant of file format.public boolean isLaterThan(FormatVersion format)
format
- another format to check.public java.lang.String serialize()
public static FormatVersion deserialize(java.lang.String serialized)
serialized
- serialized string of file format.java.lang.IllegalArgumentException
- if applicationVersion is not valid constant from com.nomagic.license.VersionNumberMap.public boolean equals(@CheckForNull java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String getVersion()
public int getVariant()