com.hammurapi.extract

## Class ExtractorComparator<T,V extends Comparable<V>,C>

- java.lang.Object
- - com.hammurapi.extract.ExtractorComparator<T,V,C>

- Type Parameters:
    `V` -
  All Implemented Interfaces:
    Comparator<T>

      public class ExtractorComparator<T,V extends Comparable<V>,C>
      extends Object
      implements Comparator<T>

  Comparator which uses extraction.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ExtractorComparator(Extractor<T,V,C> extractor, C context)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compare(T o1, T o2)`
    `boolean` | `equals(Object obj)`
    `int` | `hashCode()`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ExtractorComparator

          public ExtractorComparator(Extractor<T,V,C> extractor,
                             C context)

  - ### Method Detail

    - #### compare

          public int compare(T o1,
                    T o2)

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

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### equals

          public boolean equals(Object obj)

      Specified by:
        `equals` in interface `Comparator<T>`
      Overrides:
        `equals` in class `Object`