Package org.fluentlenium.core.conditions
Class StringListConditionsImpl
- java.lang.Object
-
- org.fluentlenium.core.conditions.BaseObjectListConditions<java.lang.String,StringConditions>
-
- org.fluentlenium.core.conditions.StringListConditionsImpl
-
- All Implemented Interfaces:
Conditions<java.lang.String>
,ConditionsObject<java.util.List<java.lang.String>>
,StringConditions
public class StringListConditionsImpl extends BaseObjectListConditions<java.lang.String,StringConditions> implements StringConditions
Conditions for list of string.
-
-
Field Summary
-
Fields inherited from class org.fluentlenium.core.conditions.BaseObjectListConditions
conditions, conditionsGetter, objectGetter
-
-
Constructor Summary
Constructors Constructor Description StringListConditionsImpl(Conditions<FluentWebElement> conditions, java.util.function.Function<FluentWebElement,java.lang.String> objectGetter, java.util.function.Function<FluentWebElement,StringConditions> conditionsGetter)
Creates a new list of string conditions
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(java.lang.CharSequence charSequence)
Check that this contains the given sequence of characters.boolean
endsWith(java.lang.String suffix)
Check that this ends with the given string.boolean
equalTo(java.lang.String anotherString)
Check that this is equal to with the given string.boolean
equalToIgnoreCase(java.lang.String anotherString)
Check that this is equal to with the given string, ignoring case.boolean
matches(java.lang.String regex)
Check that this matches the given regular expression string.boolean
matches(java.util.regex.Pattern pattern)
Check that this matches the given regular expression pattern.StringListConditionsImpl
not()
Negates this condition object.boolean
startsWith(java.lang.String prefix)
Check that this starts with the given string.-
Methods inherited from class org.fluentlenium.core.conditions.BaseObjectListConditions
getActualObject, verify
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.fluentlenium.core.conditions.Conditions
verify
-
-
-
-
Constructor Detail
-
StringListConditionsImpl
public StringListConditionsImpl(Conditions<FluentWebElement> conditions, java.util.function.Function<FluentWebElement,java.lang.String> objectGetter, java.util.function.Function<FluentWebElement,StringConditions> conditionsGetter)
Creates a new list of string conditions- Parameters:
conditions
- string conditionsobjectGetter
- getter of the underlying stringconditionsGetter
- getter of the underlying string conditions
-
-
Method Detail
-
not
public StringListConditionsImpl not()
Description copied from interface:Conditions
Negates this condition object.- Specified by:
not
in interfaceConditions<java.lang.String>
- Specified by:
not
in interfaceStringConditions
- Returns:
- a negated condition object
-
contains
public boolean contains(java.lang.CharSequence charSequence)
Description copied from interface:StringConditions
Check that this contains the given sequence of characters.- Specified by:
contains
in interfaceStringConditions
- Parameters:
charSequence
- sequence of characters- Returns:
- true if it contains the given sequence of characters, false otherwise
-
startsWith
public boolean startsWith(java.lang.String prefix)
Description copied from interface:StringConditions
Check that this starts with the given string.- Specified by:
startsWith
in interfaceStringConditions
- Parameters:
prefix
- string- Returns:
- true if it starts with the given string, false otherwise
-
endsWith
public boolean endsWith(java.lang.String suffix)
Description copied from interface:StringConditions
Check that this ends with the given string.- Specified by:
endsWith
in interfaceStringConditions
- Parameters:
suffix
- string- Returns:
- true if it ends with the given string, false otherwise
-
equalTo
public boolean equalTo(java.lang.String anotherString)
Description copied from interface:StringConditions
Check that this is equal to with the given string.- Specified by:
equalTo
in interfaceStringConditions
- Parameters:
anotherString
- another string- Returns:
- true if it is equal to the given string, false otherwise
-
equalToIgnoreCase
public boolean equalToIgnoreCase(java.lang.String anotherString)
Description copied from interface:StringConditions
Check that this is equal to with the given string, ignoring case.- Specified by:
equalToIgnoreCase
in interfaceStringConditions
- Parameters:
anotherString
- another string- Returns:
- true if it is equal to the given string, ignoring case, false otherwise
-
matches
public boolean matches(java.lang.String regex)
Description copied from interface:StringConditions
Check that this matches the given regular expression string.- Specified by:
matches
in interfaceStringConditions
- Parameters:
regex
- regular expression string- Returns:
- true if it matches the given regular expression string, false otherwise
-
matches
public boolean matches(java.util.regex.Pattern pattern)
Description copied from interface:StringConditions
Check that this matches the given regular expression pattern.- Specified by:
matches
in interfaceStringConditions
- Parameters:
pattern
- regular expression pattern- Returns:
- true if it matches the given regular expression pattern, false otherwise
-
-