Package: org.codehaus.groovy.runtime

## [Java] Class AbstractComparator<T>

- org.codehaus.groovy.runtime.AbstractComparator

- All Implemented Interfaces and Traits:
    Comparator

      public abstract class AbstractComparator<T>
      extends Object
      implements Comparator

  Base class for Groovy comparators. Provides a common implementation where equality is based on object identity.

- - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public boolean` | `equals(Object obj)` Tests for equality based on object identity.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Object` | `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### public boolean equals(Object obj)

      Tests for equality based on object identity.

      Parameters:
        `obj` - the object to compare with
      Returns:
        `true` if this object is the same as the specified object