org.apache.tinkerpop.gremlin.util.function

## Class MultiComparator<C>

- java.lang.Object
- - org.apache.tinkerpop.gremlin.util.function.MultiComparator<C>

- All Implemented Interfaces:
    Serializable, Comparator<C>

      public final class MultiComparator<C>
      extends Object
      implements Comparator<C>, Serializable

  Author:
    Marko A. Rodriguez (http://markorodriguez.com)
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MultiComparator(List<Comparator<C>> comparators)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compare(C objectA, C objectB)`
    `boolean` | `isShuffle()`

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

    - #### MultiComparator

          public MultiComparator(List<Comparator<C>> comparators)

  - ### Method Detail

    - #### compare

          public int compare(C objectA,
                             C objectB)

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

    - #### isShuffle

          public boolean isShuffle()

Copyright © 2013–2021 Apache Software Foundation. All rights reserved.