Interface QueryVersion

All Superinterfaces:
Comparable<QueryVersion>, Serializable

@NotFinalAPI public interface QueryVersion extends Comparable<QueryVersion>, Serializable
Represents a version of a query.
  • Method Details

    • asString

      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 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(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:
      IllegalArgumentException - if the given string cannot be parsed to a version object.