Class SearchMatch

  • All Implemented Interfaces:
    java.lang.Comparable<SearchMatch>

    public class SearchMatch
    extends java.lang.Object
    implements java.lang.Comparable<SearchMatch>
    Class for store info about matching position.
    • Constructor Detail

      • SearchMatch

        public SearchMatch​(int start,
                           int end)
      • SearchMatch

        public SearchMatch​(int start,
                           int end,
                           java.lang.String replacement)
    • Method Detail

      • compareTo

        public int compareTo​(SearchMatch o)
        Specified by:
        compareTo in interface java.lang.Comparable<SearchMatch>
      • getStart

        public int getStart()
      • getEnd

        public int getEnd()
      • getLength

        public int getLength()
      • getReplacement

        public java.lang.String getReplacement()
      • move

        public void move​(int offset)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object