Operator
public enum Operator : Equatable
The operator used to evaluate a condition against a variable.
-
An operator that matches if the variable is defined.
Declaration
Swift
case isDefined -
An operator that matches if the variable is not defined.
Declaration
Swift
case isNotDefined -
An operator that matches if the variable is considered to be empty.
Declaration
Swift
case isEmpty -
An operator that matches if the variable is considered not to be empty.
Declaration
Swift
case isNotEmpty -
An operator that matches if the variable is equal to the filter. Numeric comparison is attempted first, and then falls back to string equality if either the
DataItemor filter cannot be parsed as aDouble.Declaration
Swift
case equals(_: Bool)Parameters
ignoreCaseIf true the equality check is case insensitive.
-
An operator that matches if the variable is not equal to the filter. Numeric comparison is attempted first, and then falls back to string equality if either the
DataItemor filter cannot be parsed as aDouble.Declaration
Swift
case notEquals(_: Bool)Parameters
ignoreCaseIf true the equality check is case insensitive.
-
An operator that matches if the numeric variable is greater than filter. Both are converted to
Double.Declaration
Swift
case greaterThan(_: Bool)Parameters
orEqualIf true the comparison returns true for equal as well.
-
An operator that matches if the numeric variable is less than filter. Both are converted to
Double.Declaration
Swift
case lessThan(_: Bool)Parameters
orEqualIf true the comparison returns true for equal as well.
-
An operator that matches if the variable, converted to a string, contains the filter.
Declaration
Swift
case contains(_: Bool)Parameters
ignoreCaseIf true the contains check is case insensitive.
-
An operator that matches if the variable, converted to a string, does not contain the filter.
Declaration
Swift
case notContains(_: Bool)Parameters
ignoreCaseIf true the contains check is case insensitive.
-
An operator that matches if the variable, converted to a string, ends with the filter.
Declaration
Swift
case endsWith(_: Bool)Parameters
ignoreCaseIf true the endsWith check is case insensitive.
-
An operator that matches if the variable, converted to a string, doesn’t end with the filter.
Declaration
Swift
case notEndsWith(_: Bool)Parameters
ignoreCaseIf true the endsWith check is case insensitive.
-
An operator that matches if the variable, converted to a string, starts with the filter.
Declaration
Swift
case startsWith(_: Bool)Parameters
ignoreCaseIf true the startsWith check is case insensitive.
-
An operator that matches if the variable, converted to a string, doesn’t start with the filter.
Declaration
Swift
case notStartsWith(_: Bool)Parameters
ignoreCaseIf true the startWith check is case insensitive.
-
An operator that matches using a regex.
The regex needs to follow the
NSRegularExpressionformat: https://developer.apple.com/documentation/foundation/nsregularexpressionDeclaration
Swift
case regex
View on GitHub