com.carrotsearch.hppc.sorting
Class IndirectComparator.AscendingFloatComparator

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

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

A natural-order comparator for floats.


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.AscendingFloatComparator(float[] 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.AscendingFloatComparator

public IndirectComparator.AscendingFloatComparator(float[] 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.