com.sun.tdk.specdiff.html.stat

## Class NaturalComparator

- java.lang.Object
- - com.sun.tdk.specdiff.html.stat.NaturalComparator

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

      public final class NaturalComparator
      extends java.lang.Object
      implements java.util.Comparator<java.lang.String>

  Class that implements comparison of String in natural order: a1, a2, ..., a10, a11

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static NaturalComparator` | `INSTANCE`

  - ### Method Summary

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

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

      `clone, equals, finalize, 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`

- - ### Field Detail

    - #### INSTANCE

          public static final NaturalComparator INSTANCE

  - ### Method Detail

    - #### compare

          public int compare(java.lang.String s1,
                             java.lang.String s2)

      Null values are allowed. In which case returns a positive integer, negative integer, or zero as the first argument is null, second argument is null or both are null.

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