public final class AGServerVersion extends Object implements Comparable<AGServerVersion>
Constructor and Description |
---|
AGServerVersion(String versionString)
Parses a version string and constructs a version object.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(AGServerVersion other)
Performs a lexicographic comparison with another version number.
|
boolean |
equals(Object other)
Checks if another object represents the same version number.
|
int |
hashCode() |
String |
toString() |
public AGServerVersion(String versionString)
versionString
- String to be parsed, must consist of a sequence
of numbers separated by non-digit characters,public int compareTo(AGServerVersion other)
compareTo
in interface Comparable<AGServerVersion>
other
- The version to compare with.Comparable.compareTo(Object)
NullPointerException
- if the other version is null.public boolean equals(Object other)
Copyright © 2024 Franz Inc.. All rights reserved.