Package spread
Class SpreadVersion
- java.lang.Object
-
- spread.SpreadVersion
-
public class SpreadVersion extends java.lang.ObjectA SpreadVersion object is used to get the version of spread that is being used.
-
-
Field Summary
Fields Modifier and Type Field Description private intmajorVersionprivate intminorVersionprivate intpatchVersion
-
Constructor Summary
Constructors Constructor Description SpreadVersion()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMajorVersion()Returns the spread major version as an int.intgetMinorVersion()Returns the spread minor version as an int.intgetPatchVersion()Returns the spread patch version as an int.floatgetVersion()Returns the spread version as a float.java.lang.StringtoString()Returns the spread version in string form.
-
-
-
Method Detail
-
getVersion
public float getVersion()
Returns the spread version as a float. The float is of the form A.B where A is the major version and B is the minor version. The patch version is not returned.- Returns:
- the spread version
-
getMajorVersion
public int getMajorVersion()
Returns the spread major version as an int.- Returns:
- the spread major version
-
getMinorVersion
public int getMinorVersion()
Returns the spread minor version as an int.- Returns:
- the spread minor version
-
getPatchVersion
public int getPatchVersion()
Returns the spread patch version as an int.- Returns:
- the spread patch version
-
toString
public java.lang.String toString()
Returns the spread version in string form. The string is of the form A.BB.CC where A is the major version and BB is the minor version and CC is the patch version.- Overrides:
toStringin classjava.lang.Object
-
-