Package org.omegat.core.search
Class SearchMatch
- java.lang.Object
-
- org.omegat.core.search.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 Summary
Constructors Constructor Description SearchMatch(int start, int end)
SearchMatch(int start, int end, java.lang.String replacement)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(SearchMatch o)
int
getEnd()
int
getLength()
java.lang.String
getReplacement()
int
getStart()
void
move(int offset)
java.lang.String
toString()
-
-
-
Method Detail
-
compareTo
public int compareTo(SearchMatch o)
- Specified by:
compareTo
in interfacejava.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 classjava.lang.Object
-
-