com.carrotsearch.hppc.sorting
Class IndirectComparator.AscendingIntComparator

java.lang.Object
  extended by com.carrotsearch.hppc.sorting.IndirectComparator.AscendingIntComparator
All Implemented Interfaces:
IndirectComparator
Direct Known Subclasses:
IndirectComparator.DescendingIntComparator
Enclosing interface:
IndirectComparator

public static class IndirectComparator.AscendingIntComparator
extends java.lang.Object
implements IndirectComparator

A natural-order comparator for integers.


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.AscendingIntComparator(int[] 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.AscendingIntComparator

public IndirectComparator.AscendingIntComparator(int[] array)
Method Detail

compare

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

Specified by:
compare in interface IndirectComparator


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