|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.jgit.util.RawSubStringPattern
public class RawSubStringPattern
Searches text using only substring search.
Instances are thread-safe. Multiple concurrent threads may perform matches on different character sequences at the same time.
Constructor Summary | |
---|---|
RawSubStringPattern(String patternText)
Construct a new substring pattern. |
Method Summary | |
---|---|
int |
match(RawCharSequence rcs)
Match a character sequence against this pattern. |
String |
pattern()
Get the literal pattern string this instance searches for. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RawSubStringPattern(String patternText)
patternText
- text to locate. This should be a literal string, as no
meta-characters are supported by this implementation. The
string may not be the empty string.Method Detail |
---|
public int match(RawCharSequence rcs)
rcs
- the sequence to match. Must not be null but the length of the
sequence is permitted to be 0.
rcs
of the first occurrence of this
pattern; -1 if this pattern does not appear at any position of
rcs
.public String pattern()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |