org.mozilla.javascript

## Class NativeArray.ElementComparator

- java.lang.Object
- - org.mozilla.javascript.NativeArray.ElementComparator

- All Implemented Interfaces:
    java.util.Comparator<java.lang.Object>
  Enclosing class:
    NativeArray

      public static final class NativeArray.ElementComparator
      extends java.lang.Object
      implements java.util.Comparator<java.lang.Object>

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ElementComparator()`
    `ElementComparator(java.util.Comparator<java.lang.Object> c)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compare(java.lang.Object x, java.lang.Object y)`

    - ### 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`

- - ### Constructor Detail

    - #### ElementComparator

          public ElementComparator()

    - #### ElementComparator

          public ElementComparator(java.util.Comparator<java.lang.Object> c)

  - ### Method Detail

    - #### compare

          public int compare(java.lang.Object x,
                             java.lang.Object y)

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