Package com.hp.ucmdb.api.topology
Interface QueryVersion
- All Superinterfaces:
Comparable<QueryVersion>,Serializable
Represents a version of a query.
-
Method Summary
Modifier and TypeMethodDescriptionasString()intcompareTo(QueryVersion queryVersion) Compares to another query version (followingComparablerules).intCompares to another query version string (followingComparablerules).
-
Method Details
-
asString
String asString()- Returns:
- the string representation of this version.
-
compareTo
Compares to another query version (followingComparablerules). No check is done regarding the query name.- Specified by:
compareToin 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 (followingComparablerules). 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.
-