Package: java.lang

## [Java] Interface Comparable

-     public interface Comparable

  GDK enhancements for Comparable.

  displayName:
    Comparable
  receiverFqcn:
    java.lang.Comparable

- - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public int` | `numberAwareCompareTo(Comparable other)` Provides a method that compares two comparables using Groovy's default number aware comparator.

- - ### Method Detail

    - #### public int numberAwareCompareTo(Comparable other)

      Provides a method that compares two comparables using Groovy's default number aware comparator.

      Parameters:
        `other` - another Comparable
      Returns:
        a -ve number, 0 or a +ve number according to Groovy's compareTo contract
      Since:
        1.6.0