Module jpastreamer.field
Interface HasStringOperators<ENTITY>
- Type Parameters:
ENTITY- the entity type
- All Known Subinterfaces:
StringField<ENTITY>
public interface HasStringOperators<ENTITY>
A representation of an Entity field that is a
String type. String
fields have additional methods that makes it easier to create string-related
predicates.- Since:
- 2.2.0
- Author:
- Per Minborg, Emil Forslund
-
Method Summary
Modifier and TypeMethodDescriptionReturns aPredicatethat will evaluate totrue, if and only if this Field contains the given value.containsIgnoreCase(String value) Returns aPredicatethat will evaluate totrue, if and only if this Field contains the given value while ignoring the case of the Strings that are compared.Returns aPredicatethat will evaluate totrue, if and only if this Field ends with the given value.endsWithIgnoreCase(String value) Returns aPredicatethat will evaluate totrue, if and only if this Field ends with the given value while ignoring the case of the Strings that are compared.equalIgnoreCase(String value) Returns aPredicatethat will evaluate totrue, if and only if this Field is equal to the given value while ignoring the case of the Strings that are compared.isEmpty()Returns aPredicatethat will evaluate totrue, if and only if this Field is empty.default SpeedmentPredicate<ENTITY>Returns aPredicatethat will evaluate totrue, if and only if this Field is not empty.default SpeedmentPredicate<ENTITY>notContains(String value) Returns aPredicatethat will evaluate totrue, if and only if this Field not contains the given value.default SpeedmentPredicate<ENTITY>notContainsIgnoreCase(String value) Returns aPredicatethat will evaluate totrue, if and only if this Field does not contain the given value while ignoring the case of the Strings that are compared.default SpeedmentPredicate<ENTITY>notEndsWith(String value) Returns aPredicatethat will evaluate totrue, if and only if this Field not ends with the given value.default SpeedmentPredicate<ENTITY>notEndsWithIgnoreCase(String value) Returns aPredicatethat will evaluate totrue, if and only if this Field not ends with the given value while ignoring the case of the Strings that are compared.default SpeedmentPredicate<ENTITY>notEqualIgnoreCase(String value) Returns aPredicatethat will evaluate totrue, if and only if this Field is not equal to the given value while ignoring the case of the Strings that are compared.default SpeedmentPredicate<ENTITY>notStartsWith(String value) Returns aPredicatethat will evaluate totrue, if and only if this Field not starts with the given value.default SpeedmentPredicate<ENTITY>notStartsWithIgnoreCase(String value) Returns aPredicatethat will evaluate totrue, if and only if this Field not starts with the given value while ignoring the case of the Strings that are compared.startsWith(String value) Returns aPredicatethat will evaluate totrue, if and only if this Field starts with the given value.startsWithIgnoreCase(String value) Returns aPredicatethat will evaluate totrue, if and only if this Field starts with the given value while ignoring the case of the Strings that are compared.
-
Method Details
-
equalIgnoreCase
Returns aPredicatethat will evaluate totrue, if and only if this Field is equal to the given value while ignoring the case of the Strings that are compared.- Parameters:
value- to compare- Returns:
- a Predicate that will evaluate to
true, if and only if this Field is equal to the given value while ignoring the case of the Strings that are compared - See Also:
-
notEqualIgnoreCase
Returns aPredicatethat will evaluate totrue, if and only if this Field is not equal to the given value while ignoring the case of the Strings that are compared.- Parameters:
value- to compare- Returns:
- a Predicate that will evaluate to
true, if and only if this Field is not equal to the given value while ignoring the case of the Strings that are compared - See Also:
-
startsWith
Returns aPredicatethat will evaluate totrue, if and only if this Field starts with the given value.- Parameters:
value- to compare- Returns:
- a Predicate that will evaluate to
true, if and only if this Field starts with the given value - See Also:
-
notStartsWith
Returns aPredicatethat will evaluate totrue, if and only if this Field not starts with the given value.- Parameters:
value- to compare- Returns:
- a Predicate that will evaluate to
true, if and only if this Field not starts with the given value - See Also:
-
endsWith
Returns aPredicatethat will evaluate totrue, if and only if this Field ends with the given value.- Parameters:
value- to compare- Returns:
- a Predicate that will evaluate to
true, if and only if this Field ends with the given value - See Also:
-
notEndsWith
Returns aPredicatethat will evaluate totrue, if and only if this Field not ends with the given value.- Parameters:
value- to compare- Returns:
- a Predicate that will evaluate to
true, if and only if this Field not ends with the given value - See Also:
-
contains
Returns aPredicatethat will evaluate totrue, if and only if this Field contains the given value.- Parameters:
value- to compare- Returns:
- a Predicate that will evaluate to
true, if and only if this Field contains the given value - See Also:
-
notContains
Returns aPredicatethat will evaluate totrue, if and only if this Field not contains the given value.- Parameters:
value- to compare- Returns:
- a Predicate that will evaluate to
true, if and only if this Field not contains the given value - See Also:
-
isEmpty
SpeedmentPredicate<ENTITY> isEmpty()Returns aPredicatethat will evaluate totrue, if and only if this Field is empty. An empty Field contains a String with length zero.- Returns:
- a Predicate that will evaluate to
true, if and only if this Field is empty - See Also:
-
isNotEmpty
Returns aPredicatethat will evaluate totrue, if and only if this Field is not empty. An empty Field contains a String with length zero.- Returns:
- a Predicate that will evaluate to
true, if and only if this Field is not empty - See Also:
-
startsWithIgnoreCase
Returns aPredicatethat will evaluate totrue, if and only if this Field starts with the given value while ignoring the case of the Strings that are compared.- Parameters:
value- to compare- Returns:
- a Predicate that will evaluate to
true, if and only if this Field starts with the given value while ignoring the case of the Strings that are compared - See Also:
-
notStartsWithIgnoreCase
Returns aPredicatethat will evaluate totrue, if and only if this Field not starts with the given value while ignoring the case of the Strings that are compared.- Parameters:
value- to compare- Returns:
- a Predicate that will evaluate to
true, if and only if this Field not starts with the given value while ignoring the case of the Strings that are compared - See Also:
-
endsWithIgnoreCase
Returns aPredicatethat will evaluate totrue, if and only if this Field ends with the given value while ignoring the case of the Strings that are compared.- Parameters:
value- to compare- Returns:
- a Predicate that will evaluate to
true, if and only if this Field ends with the given value while ignoring the case of the Strings that are compared - See Also:
-
notEndsWithIgnoreCase
Returns aPredicatethat will evaluate totrue, if and only if this Field not ends with the given value while ignoring the case of the Strings that are compared.- Parameters:
value- to compare- Returns:
- a Predicate that will evaluate to
true, if and only if this Field not ends with the given value while ignoring the case of the Strings that are compared - See Also:
-
containsIgnoreCase
Returns aPredicatethat will evaluate totrue, if and only if this Field contains the given value while ignoring the case of the Strings that are compared.- Parameters:
value- to compare- Returns:
- a Predicate that will evaluate to
true, if and only if this Field contains the given value while ignoring the case of the Strings that are compared - See Also:
-
notContainsIgnoreCase
Returns aPredicatethat will evaluate totrue, if and only if this Field does not contain the given value while ignoring the case of the Strings that are compared.- Parameters:
value- to compare- Returns:
- a Predicate that will evaluate to
true, if and only if this Field does not contain the given value while ignoring the case of the Strings that are compared - See Also:
-