CustomOptionComparisonPolicy
public enum CustomOptionComparisonPolicy
Describes how customOptionsByRawValue
component is compared during logical operations in CustomValueOptionSet
.
-
Custom options are equal if
customOptions
key-value pairs are strictly equalExample: [1: “value1”] == [1: “value1”] [1: “value1”] != [1: “value2”] [1: “value1”] != [:] [:] == [:]
Declaration
Swift
case equal
-
Custom options are equal if
customOptions
by the given key is equal ornil
Example: [1: “value1”] == [1: “value1”] [1: “value1”] != [1: “value2”] [1: “value1”] == [:] [:] == [:]
Declaration
Swift
case equalOrNull
-
Custom options are not compared. Only
rawValue
is taken into account when comparingCustomStringOptionSet
s.Example: [1: “value1”] == [1: “value1”] [1: “value1”] == [1: “value2”] [1: “value1”] == [:] [:] == [:]
Declaration
Swift
case rawValueEqual