Package org.robovm.compiler
Class Version
java.lang.Object
org.robovm.compiler.Version
- All Implemented Interfaces:
Comparable<Version>
public final class Version extends Object implements Comparable<Version>
Reads the compiler version from auto generated
version.properties file.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description intcompareTo(Version other)intgetBuild()org.robovm.compiler.Version.BuildTypegetBuildType()static StringgetCompilerVersion()Returns the version number of the compiler by reading theversion.propertiesfile.intgetMajor()intgetMinor()int[]getParts()intgetRevision()static booleanisOlderThan(String version, String otherVersion)Returnstrueif this version is less than the specified version number.static voidmain(String[] args)static Versionparse(String v)static VersionparseOrNull(String v)StringtoString()
-
Field Details
-
parts
public final int[] parts -
build
public final int build -
buildType
public final org.robovm.compiler.Version.BuildType buildType
-
-
Constructor Details
-
Version
public Version(org.robovm.compiler.Version.BuildType buildType, int buildPart, int... parts) -
Version
public Version(int... parts)
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<Version>
-
getParts
public int[] getParts() -
getBuildType
public org.robovm.compiler.Version.BuildType getBuildType() -
getMajor
public int getMajor() -
getMinor
public int getMinor() -
getRevision
public int getRevision() -
getBuild
public int getBuild() -
parse
-
parseOrNull
-
toString
-
getCompilerVersion
Returns the version number of the compiler by reading theversion.propertiesfile.- Returns:
- the version.
-
isOlderThan
Returnstrueif this version is less than the specified version number. -
main
-