public class Version extends Object implements Comparable<Version>
| Constructor and Description |
|---|
Version(int major,
int minor,
int build) |
Version(String version) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Version o)
Compare with another version.
|
boolean |
compatibleWith(Version version) |
boolean |
equals(Object obj)
Check if another version is exactly the same as this one.
|
String |
toString() |
public Version(int major,
int minor,
int build)
public Version(String version)
public int compareTo(Version o)
compareTo in interface Comparable<Version>o - another versionpublic boolean equals(Object obj)
public boolean compatibleWith(Version version)