Package com.hp.ucmdb.api.view
Interface ViewVersion
- All Superinterfaces:
Comparable<ViewVersion>
,Serializable
- Since:
- UCMDB 9.0
-
Method Summary
Modifier and TypeMethodDescriptionasString()
The string representation of this version.int
compareTo
(ViewVersion viewVersion) Compares to another view version (followingComparable
rules).int
Compares to another view version string (followingComparable
rules).
-
Method Details
-
asString
String asString()The string representation of this version.- Returns:
- the string representation of this version.
-
compareTo
Compares to another view version (followingComparable
rules). No check is done regarding the view name.- Specified by:
compareTo
in interfaceComparable<ViewVersion>
- Parameters:
viewVersion
- the view 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 view version string (followingComparable
rules). No check is done regarding the view name.- Parameters:
viewDefinitionVersionAsString
- the view 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.
-