Package org.mozilla.javascript

## Class NativeArray.ElementComparator

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

- All Implemented Interfaces:
    `java.io.Serializable`, `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>, java.io.Serializable

  See Also:
    Serialized Form

- - ### Constructor Summary

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

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | 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

      `equals, reversed, 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>`