public class StringPattern extends ObjectPattern<java.lang.String,StringPattern>
ObjectPattern.Capture<T>
Modifier and Type | Method and Description |
---|---|
StringPattern |
contains(ElementPattern<java.lang.Character> pattern) |
StringPattern |
contains(java.lang.String s) |
StringPattern |
containsChars(java.lang.String s) |
StringPattern |
endsWith(java.lang.String s) |
StringPattern |
longerThan(int minLength) |
StringPattern |
matches(java.lang.String s) |
StringPattern |
matchesBrics(java.lang.String s) |
static java.lang.CharSequence |
newBombedCharSequence(java.lang.CharSequence sequence) |
StringPattern |
oneOf(java.util.Collection<java.lang.String> set) |
StringPattern |
oneOf(java.lang.String... values) |
StringPattern |
oneOfIgnoreCase(java.lang.String... values) |
StringPattern |
shorterThan(int maxLength) |
StringPattern |
startsWith(java.lang.String s) |
StringPattern |
withLength(int length) |
public StringPattern startsWith(java.lang.String s)
public StringPattern endsWith(java.lang.String s)
public StringPattern contains(java.lang.String s)
public StringPattern containsChars(java.lang.String s)
public StringPattern matches(java.lang.String s)
public StringPattern matchesBrics(java.lang.String s)
public StringPattern contains(ElementPattern<java.lang.Character> pattern)
public StringPattern longerThan(int minLength)
public StringPattern shorterThan(int maxLength)
public StringPattern withLength(int length)
public StringPattern oneOf(java.lang.String... values)
oneOf
in class ObjectPattern<java.lang.String,StringPattern>
public StringPattern oneOfIgnoreCase(java.lang.String... values)
public StringPattern oneOf(java.util.Collection<java.lang.String> set)
oneOf
in class ObjectPattern<java.lang.String,StringPattern>
public static java.lang.CharSequence newBombedCharSequence(java.lang.CharSequence sequence)