com.carrotsearch.hppc.sorting
Class IndirectComparator.DescendingDoubleComparator

java.lang.Object
  extended by com.carrotsearch.hppc.sorting.IndirectComparator.AscendingDoubleComparator
      extended by com.carrotsearch.hppc.sorting.IndirectComparator.DescendingDoubleComparator
All Implemented Interfaces:
IndirectComparator
Enclosing interface:
IndirectComparator

public static class IndirectComparator.DescendingDoubleComparator
extends IndirectComparator.AscendingDoubleComparator

A reverse-order comparator for doubles.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.carrotsearch.hppc.sorting.IndirectComparator
IndirectComparator.AscendingDoubleComparator, IndirectComparator.AscendingFloatComparator, IndirectComparator.AscendingIntComparator, IndirectComparator.AscendingShortComparator, IndirectComparator.DelegatingComparator<T>, IndirectComparator.DescendingDoubleComparator, IndirectComparator.DescendingFloatComparator, IndirectComparator.DescendingIntComparator, IndirectComparator.DescendingShortComparator
 
Constructor Summary
IndirectComparator.DescendingDoubleComparator(double[] array)
           
 
Method Summary
 int compare(int indexA, int indexB)
          See class documentation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndirectComparator.DescendingDoubleComparator

public IndirectComparator.DescendingDoubleComparator(double[] array)
Method Detail

compare

public final int compare(int indexA,
                         int indexB)
Description copied from interface: IndirectComparator
See class documentation.

Specified by:
compare in interface IndirectComparator
Overrides:
compare in class IndirectComparator.AscendingDoubleComparator


Copyright © 2011 Carrot Search s.c.. All Rights Reserved.