Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products.

UpdateCheckResults.VersionComparator

Stay organized with collections Save and categorize content based on your preferences.
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.
    • 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