Package com.hp.ucmdb.api.topology
Interface QueryVersion
- All Superinterfaces:
Comparable<QueryVersion>
,Serializable
Represents a version of a query.
-
Method Summary
Modifier and TypeMethodDescriptionasString()
int
compareTo
(QueryVersion queryVersion) Compares to another query version (followingComparable
rules).int
Compares to another query version string (followingComparable
rules).
-
Method Details
-
asString
String asString()- Returns:
- the string representation of this version.
-
compareTo
Compares to another query version (followingComparable
rules). No check is done regarding the query name.- Specified by:
compareTo
in interfaceComparable<QueryVersion>
- Parameters:
queryVersion
- the query version.- Returns:
- a negative integer, zero, or a positive integer as this version is less than, equal to, or greater than the specified version.
-
compareTo
Compares to another query version string (followingComparable
rules). No check is done regarding the query name.- Parameters:
queryVersionAsString
- the query versionasString()
result.- Returns:
- a negative integer, zero, or a positive integer as this version is less than, equal to, or greater than the specified version.
- Throws:
IllegalArgumentException
- if the given string cannot be parsed to a version object.
-