public class Version extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<Version>
Constructor and Description |
---|
Version(java.lang.Integer... ints)
Creates a Version
|
Version(java.lang.String string)
Creates a Version
|
Modifier and Type | Method and Description |
---|---|
static int |
compare(Version ver1,
Version ver2)
Compare Versions
|
int |
compareTo(Version version)
Compare Versions
|
boolean |
equals(java.lang.Object object) |
boolean |
equals(Version version)
See if Versions are Equal
|
static boolean |
equals(Version ver1,
Version ver2)
See if Versions are Equal
|
java.lang.String |
toString() |
public Version(java.lang.String string)
string
- Version Stringpublic Version(java.lang.Integer... ints)
ints
- Version Numbers (Will be separated with dots)public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public boolean equals(Version version)
version
- Version to Comparepublic int compareTo(Version version)
compareTo
in interface java.lang.Comparable<Version>
version
- The version to compare topublic static boolean equals(Version ver1, Version ver2)
ver1
- Version to Comparever2
- Version to Compare