public class VersionInfo
extends java.lang.Object
major.minor.release
format.Modifier and Type | Field and Description |
---|---|
java.lang.String |
displayName |
java.lang.String |
major
the major, eg.
|
java.lang.String |
minor
the minor, eg.
|
java.lang.String |
release
the release, eg.
|
Constructor and Description |
---|
VersionInfo() |
Modifier and Type | Method and Description |
---|---|
static VersionInfo |
checkAndCreate(java.lang.String version) |
static VersionInfo |
create(java.lang.String version) |
static VersionInfo |
create(java.lang.String version,
java.lang.String displayName) |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
fullString() |
boolean |
greaterThan(VersionInfo version) |
boolean |
greaterThanOrEquals(VersionInfo version) |
int |
hashCode() |
boolean |
stable()
Return if the current
VersionInfo describe an edge or a stable
version. |
java.lang.String |
toString() |
boolean |
valid() |
public java.lang.String major
public java.lang.String minor
public java.lang.String release
public java.lang.String displayName
public static VersionInfo checkAndCreate(java.lang.String version) throws ServerFault
ServerFault
public static VersionInfo create(java.lang.String version, java.lang.String displayName)
public static VersionInfo create(java.lang.String version)
public boolean valid()
public boolean greaterThan(VersionInfo version)
public boolean greaterThanOrEquals(VersionInfo version)
public boolean stable()
VersionInfo
describe an edge or a stable
version. Stable version should have minor part == 0.public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String fullString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2021. All Rights Reserved.