Constructor and Description |
---|
Version(java.lang.String versionString) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Version other) |
int |
getLegacyMajor() |
int |
getMajor() |
int |
getRevision() |
java.lang.String |
getSuffix() |
int |
getUpdate() |
boolean |
isInRange(Version low,
Version high)
Check whether this version is in range of versions specified
|
boolean |
isNewerThan(Version other) |
boolean |
isNewerThanOrEqualTo(Version other) |
boolean |
isOlderThan(Version other) |
boolean |
isOlderThanOrEqualTo(Version other) |
java.lang.String |
toShortString()
Return short string form (without suffix)
|
java.lang.String |
toString() |
public int compareTo(Version other)
compareTo
in interface java.lang.Comparable<Version>
public int getLegacyMajor()
public int getMajor()
public int getRevision()
public int getUpdate()
public java.lang.String getSuffix()
public boolean isNewerThan(Version other)
public boolean isNewerThanOrEqualTo(Version other)
public boolean isOlderThan(Version other)
public boolean isOlderThanOrEqualTo(Version other)
public boolean isInRange(Version low, Version high)
low
- the low part of the rangehigh
- the high part of the rangepublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toShortString()
Copyright © 1995–2023 Webtide. All rights reserved.