public final class FXGVersion extends Object
Modifier and Type | Class and Description |
---|---|
class |
FXGVersion.FXGVersionException |
Modifier and Type | Field and Description |
---|---|
static FXGVersion |
v1_0 |
static FXGVersion |
v2_0 |
Modifier and Type | Method and Description |
---|---|
double |
asDouble() |
String |
asString()
Returns the version represented by this FXGVersion instance as a String
value (e.g., "1.0", "1.2", etc.).
|
boolean |
equals(Object object)
Compares whether this FXGVersion's value is equal to the version value of
the object.
|
boolean |
equalTo(FXGVersion version)
Compares whether this FXGVersion's value is equal to the value of the
version parameter.
|
long |
getMajorVersion() |
boolean |
greaterThan(FXGVersion version)
Compares whether this FXGVersion's value is greater than the value of the
version parameter.
|
int |
hashCode()
Returns the hashCode
|
static FXGVersion |
newInstance(double version)
Returns a FXGVersion object representing 'version' or null if 'version'
is not a properly formatted version string.
|
public static final FXGVersion v1_0
public static final FXGVersion v2_0
public static FXGVersion newInstance(double version) throws FXGVersion.FXGVersionException
version
- - the version double value.FXGVersion.FXGVersionException
- if the version is invalid.public String asString()
public boolean equalTo(FXGVersion version)
version
- The version of FXG.public boolean equals(Object object)
public boolean greaterThan(FXGVersion version)
version
- A version of FXG.public double asDouble()
public long getMajorVersion()
Copyright © 2016 The Apache Software Foundation. All rights reserved.