Class SpectrumComparator

    • Constructor Detail

      • SpectrumComparator

        public SpectrumComparator()
    • Method Detail

      • compare

        public int compare​(Spectrum o1,
                           Spectrum o2)
        Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
        Specified by:
        compare in interface Comparator<Spectrum>
        Specified by:
        compare in class adams.data.container.DataPointComparator<Spectrum>
        Parameters:
        o1 - the first object
        o2 - the second object
        Returns:
        a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.