Package spread

Class SpreadVersion


  • public class SpreadVersion
    extends java.lang.Object
    A SpreadVersion object is used to get the version of spread that is being used.
    • Constructor Summary

      Constructors 
      Constructor Description
      SpreadVersion()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getMajorVersion()
      Returns the spread major version as an int.
      int getMinorVersion()
      Returns the spread minor version as an int.
      int getPatchVersion()
      Returns the spread patch version as an int.
      float getVersion()
      Returns the spread version as a float.
      java.lang.String toString()
      Returns the spread version in string form.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • majorVersion

        private int majorVersion
      • minorVersion

        private int minorVersion
      • patchVersion

        private int patchVersion
    • Constructor Detail

      • SpreadVersion

        public SpreadVersion()
    • 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:
        toString in class java.lang.Object