com.hazelcast.jet.function

## Interface ComparatorEx<T>

- All Superinterfaces:
    Comparator<T>, Serializable
  Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

      @FunctionalInterface
      public interface ComparatorEx<T>
      extends Comparator<T>, Serializable

  `Serializable` variant of `java.util.Comparator` which declares checked exception.
  Since:
    3.0

- - ### Method Summary

    All Methods Static Methods Instance Methods Abstract Methods Default Methods
    Modifier and Type | Method and Description
    --- | ---
    `default int` | `compare(T o1, T o2)`
    `int` | `compareEx(T o1, T o2)` Exception-declaring version of `Comparator.compare(T, T)`.
    `static <T,U extends Comparable<? super U>> ComparatorEx<T>` | `comparing(Function<? super T,? extends U> toKeyFn)` `Serializable` variant of `java.util.Comparator#comparing(Function)`.
    `static <T,U> ComparatorEx<T>` | `comparing(Function<? super T,? extends U> toKeyFn, Comparator<? super U> keyComparator)` `Serializable` variant of `java.util.Comparator#comparing(Function, Comparator)`.
    `static <T,U extends Comparable<? super U>> ComparatorEx<T>` | `comparing(FunctionEx<? super T,? extends U> toKeyFn)` `Serializable` variant of `java.util.Comparator#comparing(Function)`.
    `static <T,U> ComparatorEx<T>` | `comparing(FunctionEx<? super T,? extends U> toKeyFn, ComparatorEx<? super U> keyComparator)` `Serializable` variant of `java.util.Comparator#comparing(Function, Comparator)`.
    `static <T> ComparatorEx<T>` | `comparingDouble(ToDoubleFunction<? super T> toKeyFn)` `Serializable` variant of `java.util.Comparator#comparingDouble(ToDoubleFunction)`.
    `static <T> ComparatorEx<T>` | `comparingDouble(ToDoubleFunctionEx<? super T> toKeyFn)` `Serializable` variant of `java.util.Comparator#comparingDouble(ToDoubleFunction)`.
    `static <T> ComparatorEx<T>` | `comparingInt(ToIntFunction<? super T> toKeyFn)` `Serializable` variant of `java.util.Comparator#comparingInt(ToIntFunction)`.
    `static <T> ComparatorEx<T>` | `comparingInt(ToIntFunctionEx<? super T> toKeyFn)` `Serializable` variant of `java.util.Comparator#comparingInt(ToIntFunction)`.
    `static <T> ComparatorEx<T>` | `comparingLong(ToLongFunction<? super T> toKeyFn)` `Serializable` variant of `java.util.Comparator#comparingLong(ToLongFunction)`.
    `static <T> ComparatorEx<T>` | `comparingLong(ToLongFunctionEx<? super T> toKeyFn)` `Serializable` variant of `java.util.Comparator#comparingLong(ToLongFunction)`.
    `static <T extends Comparable<? super T>> ComparatorEx<T>` | `naturalOrder()` `Serializable` variant of `java.util.Comparator#naturalOrder()`.
    `static <T> ComparatorEx<T>` | `nullsFirst(Comparator<? super T> comparator)` `Serializable` variant of `java.util.Comparator#nullsFirst(Comparator)`.
    `static <T> ComparatorEx<T>` | `nullsFirst(ComparatorEx<? super T> comparator)` `Serializable` variant of `java.util.Comparator#nullsFirst(Comparator)`.
    `static <T> ComparatorEx<T>` | `nullsLast(Comparator<? super T> comparator)` `Serializable` variant of `java.util.Comparator#nullsLast(Comparator)`.
    `static <T> ComparatorEx<T>` | `nullsLast(ComparatorEx<? super T> comparator)` `Serializable` variant of `java.util.Comparator#nullsLast(Comparator)`.
    `default ComparatorEx<T>` | `reversed()` `Serializable` variant of `java.util.Comparator#reversed()`
    `static <T extends Comparable<? super T>> ComparatorEx<T>` | `reverseOrder()` `Serializable` variant of `java.util.Comparator#reverseOrder()`.
    `default ComparatorEx<T>` | `thenComparing(Comparator<? super T> other)` `Serializable` variant of `java.util.Comparator#thenComparing(Comparator)`.
    `default ComparatorEx<T>` | `thenComparing(ComparatorEx<? super T> other)` `Serializable` variant of `java.util.Comparator#thenComparing(Comparator)`.
    `default <U extends Comparable<? super U>> ComparatorEx<T>` | `thenComparing(Function<? super T,? extends U> toKeyFn)` `Serializable` variant of `java.util.Comparator#thenComparing(Function)`.
    `default <U> ComparatorEx<T>` | `thenComparing(Function<? super T,? extends U> toKeyFn, Comparator<? super U> keyComparator)` `Serializable` variant of `java.util.Comparator#thenComparing(Function, Comparator)`.
    `default <U extends Comparable<? super U>> ComparatorEx<T>` | `thenComparing(FunctionEx<? super T,? extends U> toKeyFn)` `Serializable` variant of `java.util.Comparator#thenComparing(Function)`.
    `default <U> ComparatorEx<T>` | `thenComparing(FunctionEx<? super T,? extends U> toKeyFn, ComparatorEx<? super U> keyComparator)` `Serializable` variant of `java.util.Comparator#thenComparing(Function, Comparator)`.
    `default ComparatorEx<T>` | `thenComparingDouble(ToDoubleFunction<? super T> toKeyFn)` `Serializable` variant of `java.util.Comparator#thenComparingDouble(ToDoubleFunction)`.
    `default ComparatorEx<T>` | `thenComparingDouble(ToDoubleFunctionEx<? super T> toKeyFn)` `Serializable` variant of `java.util.Comparator#thenComparingDouble(ToDoubleFunction)`.
    `default ComparatorEx<T>` | `thenComparingInt(ToIntFunction<? super T> toKeyFn)` `Serializable` variant of `java.util.Comparator#thenComparingInt(ToIntFunction)`.
    `default ComparatorEx<T>` | `thenComparingInt(ToIntFunctionEx<? super T> toKeyFn)` `Serializable` variant of `java.util.Comparator#thenComparingInt(ToIntFunction)`.
    `default ComparatorEx<T>` | `thenComparingLong(ToLongFunction<? super T> toKeyFn)` `Serializable` variant of `java.util.Comparator#thenComparingLong(ToLongFunction)`.
    `default ComparatorEx<T>` | `thenComparingLong(ToLongFunctionEx<? super T> toKeyFn)` `Serializable` variant of `java.util.Comparator#thenComparingLong(ToLongFunction)`.

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

      `equals`

- - ### Method Detail

    - #### compareEx

          int compareEx(T o1,
                        T o2)
                 throws Exception

      Exception-declaring version of `Comparator.compare(T, T)`.
      Throws:
        `Exception`

    - #### compare

          default int compare(T o1,
                              T o2)

      Specified by:
        `compare` in interface `Comparator<T>`

    - #### naturalOrder

          static <T extends Comparable<? super T>> ComparatorEx<T> naturalOrder()

      `Serializable` variant of `java.util.Comparator#naturalOrder()`.
      Specified by:
        `naturalOrder` in interface `Comparator<T>`

    - #### reverseOrder

          static <T extends Comparable<? super T>> ComparatorEx<T> reverseOrder()

      `Serializable` variant of `java.util.Comparator#reverseOrder()`.
      Specified by:
        `reverseOrder` in interface `Comparator<T>`

    - #### nullsFirst

          static <T> ComparatorEx<T> nullsFirst(Comparator<? super T> comparator)

      `Serializable` variant of `java.util.Comparator#nullsFirst(Comparator)`.
      Specified by:
        `nullsFirst` in interface `Comparator<T>`

    - #### nullsFirst

          static <T> ComparatorEx<T> nullsFirst(ComparatorEx<? super T> comparator)

      `Serializable` variant of `java.util.Comparator#nullsFirst(Comparator)`.

    - #### nullsLast

          static <T> ComparatorEx<T> nullsLast(Comparator<? super T> comparator)

      `Serializable` variant of `java.util.Comparator#nullsLast(Comparator)`.
      Specified by:
        `nullsLast` in interface `Comparator<T>`

    - #### nullsLast

          static <T> ComparatorEx<T> nullsLast(ComparatorEx<? super T> comparator)

      `Serializable` variant of `java.util.Comparator#nullsLast(Comparator)`.

    - #### comparing

          static <T,U> ComparatorEx<T> comparing(Function<? super T,? extends U> toKeyFn,
                                                 Comparator<? super U> keyComparator)

      `Serializable` variant of `java.util.Comparator#comparing(Function, Comparator)`.
      Specified by:
        `comparing` in interface `Comparator<T>`

    - #### comparing

          static <T,U> ComparatorEx<T> comparing(FunctionEx<? super T,? extends U> toKeyFn,
                                                 ComparatorEx<? super U> keyComparator)

      `Serializable` variant of `java.util.Comparator#comparing(Function, Comparator)`.

    - #### comparing

          static <T,U extends Comparable<? super U>> ComparatorEx<T> comparing(Function<? super T,? extends U> toKeyFn)

      `Serializable` variant of `java.util.Comparator#comparing(Function)`.
      Specified by:
        `comparing` in interface `Comparator<T>`

    - #### comparing

          static <T,U extends Comparable<? super U>> ComparatorEx<T> comparing(FunctionEx<? super T,? extends U> toKeyFn)

      `Serializable` variant of `java.util.Comparator#comparing(Function)`.

    - #### comparingInt

          static <T> ComparatorEx<T> comparingInt(ToIntFunction<? super T> toKeyFn)

      `Serializable` variant of `java.util.Comparator#comparingInt(ToIntFunction)`.
      Specified by:
        `comparingInt` in interface `Comparator<T>`

    - #### comparingInt

          static <T> ComparatorEx<T> comparingInt(ToIntFunctionEx<? super T> toKeyFn)

      `Serializable` variant of `java.util.Comparator#comparingInt(ToIntFunction)`.

    - #### comparingLong

          static <T> ComparatorEx<T> comparingLong(ToLongFunction<? super T> toKeyFn)

      `Serializable` variant of `java.util.Comparator#comparingLong(ToLongFunction)`.
      Specified by:
        `comparingLong` in interface `Comparator<T>`

    - #### comparingLong

          static <T> ComparatorEx<T> comparingLong(ToLongFunctionEx<? super T> toKeyFn)

      `Serializable` variant of `java.util.Comparator#comparingLong(ToLongFunction)`.

    - #### comparingDouble

          static <T> ComparatorEx<T> comparingDouble(ToDoubleFunction<? super T> toKeyFn)

      `Serializable` variant of `java.util.Comparator#comparingDouble(ToDoubleFunction)`.
      Specified by:
        `comparingDouble` in interface `Comparator<T>`

    - #### comparingDouble

          static <T> ComparatorEx<T> comparingDouble(ToDoubleFunctionEx<? super T> toKeyFn)

      `Serializable` variant of `java.util.Comparator#comparingDouble(ToDoubleFunction)`.

    - #### thenComparing

          default ComparatorEx<T> thenComparing(Comparator<? super T> other)

      `Serializable` variant of `java.util.Comparator#thenComparing(Comparator)`.
      Specified by:
        `thenComparing` in interface `Comparator<T>`

    - #### thenComparing

          default ComparatorEx<T> thenComparing(ComparatorEx<? super T> other)

      `Serializable` variant of `java.util.Comparator#thenComparing(Comparator)`.

    - #### thenComparing

          default <U> ComparatorEx<T> thenComparing(Function<? super T,? extends U> toKeyFn,
                                                    Comparator<? super U> keyComparator)

      `Serializable` variant of `java.util.Comparator#thenComparing(Function, Comparator)`.
      Specified by:
        `thenComparing` in interface `Comparator<T>`

    - #### thenComparing

          default <U> ComparatorEx<T> thenComparing(FunctionEx<? super T,? extends U> toKeyFn,
                                                    ComparatorEx<? super U> keyComparator)

      `Serializable` variant of `java.util.Comparator#thenComparing(Function, Comparator)`.

    - #### thenComparing

          default <U extends Comparable<? super U>> ComparatorEx<T> thenComparing(Function<? super T,? extends U> toKeyFn)

      `Serializable` variant of `java.util.Comparator#thenComparing(Function)`.
      Specified by:
        `thenComparing` in interface `Comparator<T>`

    - #### thenComparing

          default <U extends Comparable<? super U>> ComparatorEx<T> thenComparing(FunctionEx<? super T,? extends U> toKeyFn)

      `Serializable` variant of `java.util.Comparator#thenComparing(Function)`.

    - #### thenComparingInt

          default ComparatorEx<T> thenComparingInt(ToIntFunction<? super T> toKeyFn)

      `Serializable` variant of `java.util.Comparator#thenComparingInt(ToIntFunction)`.
      Specified by:
        `thenComparingInt` in interface `Comparator<T>`

    - #### thenComparingInt

          default ComparatorEx<T> thenComparingInt(ToIntFunctionEx<? super T> toKeyFn)

      `Serializable` variant of `java.util.Comparator#thenComparingInt(ToIntFunction)`.

    - #### thenComparingLong

          default ComparatorEx<T> thenComparingLong(ToLongFunction<? super T> toKeyFn)

      `Serializable` variant of `java.util.Comparator#thenComparingLong(ToLongFunction)`.
      Specified by:
        `thenComparingLong` in interface `Comparator<T>`

    - #### thenComparingLong

          default ComparatorEx<T> thenComparingLong(ToLongFunctionEx<? super T> toKeyFn)

      `Serializable` variant of `java.util.Comparator#thenComparingLong(ToLongFunction)`.

    - #### thenComparingDouble

          default ComparatorEx<T> thenComparingDouble(ToDoubleFunction<? super T> toKeyFn)

      `Serializable` variant of `java.util.Comparator#thenComparingDouble(ToDoubleFunction)`.
      Specified by:
        `thenComparingDouble` in interface `Comparator<T>`

    - #### thenComparingDouble

          default ComparatorEx<T> thenComparingDouble(ToDoubleFunctionEx<? super T> toKeyFn)

      `Serializable` variant of `java.util.Comparator#thenComparingDouble(ToDoubleFunction)`.

    - #### reversed

          default ComparatorEx<T> reversed()

      `Serializable` variant of `java.util.Comparator#reversed()`
      Specified by:
        `reversed` in interface `Comparator<T>`

Copyright © 2020. All rights reserved.