Package org.apache.storm.utils

# Class SimpleVersion

java.lang.Object
org.apache.storm.utils.SimpleVersion

All Implemented Interfaces:
  `Comparable<SimpleVersion>`

public class SimpleVersion extends Object implements Comparable<SimpleVersion>
Take a version string and parse out a Major.Minor version

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `SimpleVersion(String version)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `compareTo(SimpleVersion o)`
  `boolean`
  `equals(Object o)`
  `int`
  `getMajor()`
  `int`
  `getMinor()`
  `int`
  `hashCode()`
  `String`
  `toString()`

  ### Methods inherited from class java.lang.Object

  `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### SimpleVersion

    public SimpleVersion(String version)

- ## Method Details

  - ### getMajor

    public int getMajor()

  - ### getMinor

    public int getMinor()

  - ### hashCode

    public int hashCode()
    Overrides:
      `hashCode` in class `Object`

  - ### equals

    public boolean equals(Object o)
    Overrides:
      `equals` in class `Object`

  - ### compareTo

    public int compareTo(SimpleVersion o)
    Specified by:
      `compareTo` in interface `Comparable<SimpleVersion>`

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`