cds.simbad
Class CompareByFilter

java.lang.Object
  extended bycds.simbad.CompareByFilter
All Implemented Interfaces:
java.util.Comparator

class CompareByFilter
extends java.lang.Object
implements java.util.Comparator

Comparator class for sorting magnitudes according to the filter wavelength


Constructor Summary
(package private) CompareByFilter()
           
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
          Compare method required by the Comparator interface
 
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

CompareByFilter

CompareByFilter()
Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Compare method required by the Comparator interface

Specified by:
compare in interface java.util.Comparator
Parameters:
o1 - first object to compare (Magnitude)
o2 - second object to compare (Magnitude)
Returns:
-1, 0 or 1 if o1 is lower, equal or higher that o2