public class AndStringPattern extends StringPatternSequence
StringPatterns
._patterns
Constructor and Description |
---|
AndStringPattern(StringPattern... pattern)
Creates instance with specified patterns.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getOperatorSymbol()
Returns the operator symbol for pretty printing.
|
boolean |
matches(java.lang.String string)
Return
false if a pattern in the sequence returns
false . |
appendPattern, toString
public AndStringPattern(StringPattern... pattern)
public boolean matches(java.lang.String string)
false
if a pattern in the sequence returns
false
. Otherwise true
is returned.string
- String to be matched. Can be null.protected java.lang.String getOperatorSymbol()
StringPatternSequence
toString()
.getOperatorSymbol
in class StringPatternSequence