icecube.daq.domcal
Class CalibratorComparator

java.lang.Object
  extended by icecube.daq.domcal.CalibratorComparator
All Implemented Interfaces:
java.util.Comparator

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

Compare calibration data.


Method Summary
static int compare(Calibrator c1, Calibrator c2)
          Compare calibration data.
static int compare(Calibrator c1, Calibrator c2, boolean verbose)
          Compare calibration data.
 int compare(java.lang.Object o1, java.lang.Object o2)
          Compare calibration data.
 boolean equals(java.lang.Object obj)
          Silly implementation to check for equality to another CalibratorComparator.
 int hashCode()
          Silly implementation to provide lame hash code.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Compare calibration data.

Specified by:
compare in interface java.util.Comparator
Parameters:
o1 - first object being compared
o2 - second object being compared
Returns:
0 if the arguments are equal, -1 if c1 is greater than c2, or -1 if c1 is less than c2

compare

public static final int compare(Calibrator c1,
                                Calibrator c2)
Compare calibration data.

Parameters:
c1 - first set of calibration data
c2 - second set of calibration data
Returns:
0 if the arguments are equal, -1 if c1 is greater than c2, or -1 if c1 is less than c2

compare

public static final int compare(Calibrator c1,
                                Calibrator c2,
                                boolean verbose)
Compare calibration data.

Parameters:
c1 - first set of calibration data
c2 - second set of calibration data
verbose - true to print reason for inequality
Returns:
0 if the arguments are equal, -1 if c1 is greater than c2, or -1 if c1 is less than c2

equals

public boolean equals(java.lang.Object obj)
Silly implementation to check for equality to another CalibratorComparator.

Specified by:
equals in interface java.util.Comparator
Overrides:
equals in class java.lang.Object
Parameters:
obj - object being compared
Returns:
true if the object is a CalibratorComparator

hashCode

public int hashCode()
Silly implementation to provide lame hash code.

Overrides:
hashCode in class java.lang.Object
Returns:
class hash code


Copyright © 2006 IceCube Collaboration. All Rights Reserved.