it.unimi.dsi.fastutil.floats
Interface FloatComparator

All Superinterfaces:
Comparator<Float>
All Known Implementing Classes:
AbstractFloatComparator

public interface FloatComparator
extends Comparator<Float>

A type-specific Comparator; provides methods to compare two primitive types both as objects and as primitive types.

Note that fastutil provides a corresponding abstract class that can be used to implement this interface just by specifying the type-specific comparator.

See Also:
Comparator

Method Summary
 int compare(float k1, float k2)
          Compares the given primitive types.
 
Methods inherited from interface java.util.Comparator
compare, equals
 

Method Detail

compare

int compare(float k1,
            float k2)
Compares the given primitive types.

Returns:
A positive integer, zero, or a negative integer if the first argument is greater than, equal to, or smaller than, respectively, the second one.
See Also:
Comparator


Copyright © 2011. All Rights Reserved.