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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(SimpleVersion o)
boolean
equals(Object o)
int
getMajor()
int
getMinor()
int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
SimpleVersion
public SimpleVersion(String version)
-
-
Method Detail
-
getMajor
public int getMajor()
-
getMinor
public int getMinor()
-
compareTo
public int compareTo(SimpleVersion o)
- Specified by:
compareTo
in interfaceComparable<SimpleVersion>
-
-