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()intcompareTo(QueryResultVersion queryResultVersion) Compares to another query result version (followingComparablerules).intCompares to another query result version string (followingComparablerules).Extracts the matchingQueryVersionobject for comparison with queries.
-
Method Details
-
asString
String asString()- Returns:
- the string representation of this version.
-
compareTo
Compares to another query result version (followingComparablerules).- Specified by:
compareToin 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 (followingComparablerules).- 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 matchingQueryVersionobject 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:
-