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 Details

    • equalIgnoreCase

      SpeedmentPredicate<ENTITY> equalIgnoreCase(String value)
      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.
      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

      default SpeedmentPredicate<ENTITY> notEqualIgnoreCase(String value)
      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.
      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

      SpeedmentPredicate<ENTITY> startsWith(String value)
      Returns a Predicate that will evaluate to true, 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

      default SpeedmentPredicate<ENTITY> notStartsWith(String value)
      Returns a Predicate that will evaluate to true, 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

      SpeedmentPredicate<ENTITY> endsWith(String value)
      Returns a Predicate that will evaluate to true, 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

      default SpeedmentPredicate<ENTITY> notEndsWith(String value)
      Returns a Predicate that will evaluate to true, 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

      SpeedmentPredicate<ENTITY> contains(String value)
      Returns a Predicate that will evaluate to true, 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

      default SpeedmentPredicate<ENTITY> notContains(String value)
      Returns a Predicate that will evaluate to true, 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

      Returns a Predicate that will evaluate to true, 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

      default SpeedmentPredicate<ENTITY> isNotEmpty()
      Returns a Predicate that will evaluate to true, 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

      SpeedmentPredicate<ENTITY> startsWithIgnoreCase(String value)
      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.
      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

      default SpeedmentPredicate<ENTITY> notStartsWithIgnoreCase(String value)
      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.
      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

      SpeedmentPredicate<ENTITY> endsWithIgnoreCase(String value)
      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.
      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

      default SpeedmentPredicate<ENTITY> notEndsWithIgnoreCase(String value)
      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.
      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

      SpeedmentPredicate<ENTITY> containsIgnoreCase(String value)
      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.
      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

      default SpeedmentPredicate<ENTITY> notContainsIgnoreCase(String value)
      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.
      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: