Package adams.core

Class NumericStringCompare

    • Field Detail

      • m_Find

        protected BaseRegExp m_Find
        the string to find.
      • m_Replace

        protected String m_Replace
        the replacement string.
    • Constructor Detail

      • NumericStringCompare

        public NumericStringCompare()
    • Method Detail

      • setFind

        public void setFind​(BaseRegExp value)
        Sets the string to find (regular expression).
        Parameters:
        value - the string
      • getFind

        public BaseRegExp getFind()
        Returns the string to find (regular expression).
        Returns:
        the string
      • findTipText

        public String findTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setReplace

        public void setReplace​(String value)
        Sets the string to replace the occurrences with.
        Parameters:
        value - the string
      • getReplace

        public String getReplace()
        Returns the string to replace the occurences with.
        Returns:
        the string
      • replaceTipText

        public String replaceTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • getQuickInfo

        public String getQuickInfo()
        Returns a quick info about the actor, which will be displayed in the GUI.
        Specified by:
        getQuickInfo in interface QuickInfoSupporter
        Returns:
        null if no info available, otherwise short string
      • compare

        public int compare​(String o1,
                           String o2)
        Compares its two arguments for order.
        Specified by:
        compare in interface Comparator<String>
        Parameters:
        o1 - the first object
        o2 - the second object
        Returns:
        -1 if o1<o2, 0 if o1=o2 and 1 if o1&;gt;o2
      • equals

        public boolean equals​(Object obj)
        Indicates whether some other object is "equal to" this Comparator.
        Specified by:
        equals in interface Comparator<String>
        Overrides:
        equals in class Object
        Parameters:
        obj - the object to compare with this Comparator
        Returns:
        true if the object is a DefaultCompare object as well