com.hp.ucmdb.api.topology
Interface QueryVersion

All Superinterfaces:
java.lang.Comparable<QueryVersion>, java.io.Serializable

@NotFinalAPI
public interface QueryVersion
extends java.lang.Comparable<QueryVersion>, java.io.Serializable

Represents a version of a query.


Method Summary
 java.lang.String asString()
           
 int compareTo(QueryVersion queryVersion)
          Compares to another query version (following Comparable rules).
 int compareTo(java.lang.String queryVersionAsString)
          Compares to another query version string (following Comparable rules).
 

Method Detail

asString

java.lang.String asString()
Returns:
the string representation of this version.

compareTo

int compareTo(QueryVersion queryVersion)
Compares to another query version (following Comparable rules). No check is done regarding the query name.

Specified by:
compareTo in interface java.lang.Comparable<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

int compareTo(java.lang.String queryVersionAsString)
Compares to another query version string (following Comparable rules). No check is done regarding the query name.

Parameters:
queryVersionAsString - the query version asString() 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:
java.lang.IllegalArgumentException - if the given string cannot be parsed to a version object.


Documentation Feedback
Copyright 2010 Hewlett-Packard Development Company, L.P.