Class SpectrumComparatorByReportValue

    • Field Detail

      • m_Field

        protected adams.data.report.Field m_Field
        the field to use.
    • Constructor Detail

      • SpectrumComparatorByReportValue

        public SpectrumComparatorByReportValue()
    • Method Detail

      • defineOptions

        public void defineOptions()
        Adds options to the internal list of options.
        Specified by:
        defineOptions in interface adams.core.option.OptionHandler
        Overrides:
        defineOptions in class AbstractSpectrumComparator
      • setField

        public void setField​(adams.data.report.Field value)
        Sets the field to inspect.
        Parameters:
        value - the field
      • getField

        public adams.data.report.Field getField()
        Returns the field to inspect.
        Returns:
        the field
      • fieldTipText

        public String fieldTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • 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.