LongComparator (Groovy 5.0.8)

Package: groovy.util.function

## [Java] Interface LongComparator

-     @FunctionalInterface
      public interface LongComparator

  A comparator of two long values.

- - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public int` | `compare(long v1, long v2)` Compares its two arguments for order.

- - ### Method Detail

    - #### public int compare(long v1, long v2)

      Compares its two arguments for order.

      Parameters:
        `v1` - The long value to compare.
        `v2` - The long value to compare.
      Returns:
        If v1 is less than v2, returns negative. If v1 equals to v2, returns zero. If v1 is greater than v2, returns positive.