Interface ViewVersion

All Superinterfaces:
Comparable<ViewVersion>, Serializable

public interface ViewVersion extends Comparable<ViewVersion>, Serializable
Since:
UCMDB 9.0
  • Method Summary

    Modifier and Type
    Method
    Description
    The string representation of this version.
    int
    compareTo(ViewVersion viewVersion)
    Compares to another view version (following Comparable rules).
    int
    compareTo(String viewDefinitionVersionAsString)
    Compares to another view version string (following Comparable rules).
  • Method Details

    • asString

      String asString()
      The string representation of this version.
      Returns:
      the string representation of this version.
    • compareTo

      int compareTo(ViewVersion viewVersion)
      Compares to another view version (following Comparable rules). No check is done regarding the view name.
      Specified by:
      compareTo in interface Comparable<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

      int compareTo(String viewDefinitionVersionAsString)
      Compares to another view version string (following Comparable rules). No check is done regarding the view name.
      Parameters:
      viewDefinitionVersionAsString - the view 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:
      IllegalArgumentException - if the given string cannot be parsed to a version object.