com.google.appengine.tools.info

## Class UpdateCheckResults.VersionComparator

- java.lang.Object
- - com.google.appengine.tools.info.UpdateCheckResults.VersionComparator

- All Implemented Interfaces:
    java.util.Comparator<java.lang.String>
  Enclosing class:
    UpdateCheckResults

      public static class UpdateCheckResults.VersionComparator
      extends java.lang.Object
      implements java.util.Comparator<java.lang.String>

  `VersionComparator` compares strings that represent dotted version numbers (e.g. "1.1.2"). These string are compared using the ordering laid out in the Specification Versioning section of the Java Production Versioning Guide.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `VersionComparator()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compare(java.lang.String string1, java.lang.String string2)`

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface java.util.Comparator

      `comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong`

- - ### Constructor Detail

    - #### VersionComparator

          public VersionComparator()

  - ### Method Detail

    - #### compare

          public int compare(java.lang.String string1,
                             java.lang.String string2)
                      throws java.lang.NumberFormatException

      Specified by:
        `compare` in interface `java.util.Comparator<java.lang.String>`
      Throws:
        `java.lang.NumberFormatException`