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 and Description
    `SimpleVersion(String version)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and 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 Detail

    - #### SimpleVersion

          public SimpleVersion(String version)

  - ### Method Detail

    - #### 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`

Copyright © 2019 The Apache Software Foundation. All rights reserved.