public class StringConditionsImpl extends AbstractObjectConditions<String> implements StringConditions
negation, object| Constructor and Description |
|---|
StringConditionsImpl(String string)
Creates a new conditions object on string.
|
StringConditionsImpl(String string,
boolean negation)
Creates a new conditions object on string.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(CharSequence charSequence)
Check that this contains the given sequence of characters.
|
boolean |
endsWith(String suffix)
Check that this ends with the given string.
|
boolean |
equalTo(String anotherString)
Check that this is equal to with the given string.
|
boolean |
equalToIgnoreCase(String anotherString)
Check that this is equal to with the given string, ignoring case.
|
boolean |
matches(Pattern pattern)
Check that this matches the given regular expression pattern.
|
boolean |
matches(String regex)
Check that this matches the given regular expression string.
|
protected StringConditionsImpl |
newInstance(boolean negationValue)
Creates a new instance of this condition.
|
StringConditionsImpl |
not()
Negates this condition object.
|
boolean |
startsWith(String prefix)
Check that this starts with the given string.
|
getActualObject, verifyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitverifypublic StringConditionsImpl(String string)
string - underlying stringpublic StringConditionsImpl(String string, boolean negation)
string - underlying stringnegation - negation valueprotected StringConditionsImpl newInstance(boolean negationValue)
AbstractObjectConditionsnewInstance in class AbstractObjectConditions<String>negationValue - negation valuepublic StringConditionsImpl not()
Conditionsnot in interface Conditions<String>not in interface StringConditionsnot in class AbstractObjectConditions<String>public boolean contains(CharSequence charSequence)
StringConditionscontains in interface StringConditionscharSequence - sequence of characterspublic boolean startsWith(String prefix)
StringConditionsstartsWith in interface StringConditionsprefix - stringpublic boolean endsWith(String suffix)
StringConditionsendsWith in interface StringConditionssuffix - stringpublic boolean equalTo(String anotherString)
StringConditionsequalTo in interface StringConditionsanotherString - another stringpublic boolean equalToIgnoreCase(String anotherString)
StringConditionsequalToIgnoreCase in interface StringConditionsanotherString - another stringpublic boolean matches(String regex)
StringConditionsmatches in interface StringConditionsregex - regular expression stringpublic boolean matches(Pattern pattern)
StringConditionsmatches in interface StringConditionspattern - regular expression patternCopyright © 2016 FluentLenium. All Rights Reserved.