RBNutilities
Class SmallDoubleArrayComparatorByComponent

java.lang.Object
  extended by RBNutilities.SmallDoubleArrayComparatorByComponent
All Implemented Interfaces:
java.util.Comparator

public class SmallDoubleArrayComparatorByComponent
extends java.lang.Object
implements java.util.Comparator

Compares two double arrays according to their components baseindex and factorindex, which are interpreted as a representation for a SmallDouble.


Constructor Summary
SmallDoubleArrayComparatorByComponent(int bi, int fi)
           
 
Method Summary
 int compare(java.lang.Object arr1, java.lang.Object arr2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

SmallDoubleArrayComparatorByComponent

public SmallDoubleArrayComparatorByComponent(int bi,
                                             int fi)
Method Detail

compare

public int compare(java.lang.Object arr1,
                   java.lang.Object arr2)
Specified by:
compare in interface java.util.Comparator