Package com.hp.ucmdb.api.topology
Interface QueryResultVersion
- All Superinterfaces:
Comparable<QueryResultVersion>
,Serializable
@NotFinalAPI
public interface QueryResultVersion
extends Serializable, Comparable<QueryResultVersion>
Represents a version of a query result.
-
Method Summary
Modifier and TypeMethodDescriptionasString()
int
compareTo
(QueryResultVersion queryResultVersion) Compares to another query result version (followingComparable
rules).int
Compares to another query result version string (followingComparable
rules).Extracts the matchingQueryVersion
object for comparison with queries.
-
Method Details
-
asString
String asString()- Returns:
- the string representation of this version.
-
compareTo
Compares to another query result version (followingComparable
rules).- Specified by:
compareTo
in interfaceComparable<QueryResultVersion>
- Parameters:
queryResultVersion
- the query result 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 result version string (followingComparable
rules).- Parameters:
queryResultVersionAsString
- the query result 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.
-
queryVersion
QueryVersion queryVersion()Extracts the matchingQueryVersion
object for comparison with queries. In essence, if no change is done to a query before execution is performed, the QueryVersion from this method and the QueryVersion from theQuery.queryVersion()
will be equal.- Returns:
- the matching QueryVersion object.
- See Also:
-