public class SimpleVersion extends Object implements Comparable<SimpleVersion>
Take a version string and parse out a Major.Minor version
Constructor and Description |
---|
SimpleVersion(String version) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(SimpleVersion o) |
boolean |
equals(Object o) |
int |
getMajor() |
int |
getMinor() |
int |
hashCode() |
String |
toString() |
public SimpleVersion(String version)
public int getMajor()
public int getMinor()
public int compareTo(SimpleVersion o)
compareTo
in interface Comparable<SimpleVersion>
Copyright © 2019 The Apache Software Foundation. All rights reserved.