CustomOptionComparisonPolicy

Describes how customOptionsByRawValue component is compared during logical operations in CustomValueOptionSet.

  • Custom options are equal if customOptions key-value pairs are strictly equal

    Example: [1: “value1”] == [1: “value1”] [1: “value1”] != [1: “value2”] [1: “value1”] != [:] [:] == [:]

  • Custom options are equal if customOptions by the given key is equal or nil

    Example: [1: “value1”] == [1: “value1”] [1: “value1”] != [1: “value2”] [1: “value1”] == [:] [:] == [:]

  • Custom options are not compared. Only rawValue is taken into account when comparing CustomStringOptionSets.

    Example: [1: “value1”] == [1: “value1”] [1: “value1”] == [1: “value2”] [1: “value1”] == [:] [:] == [:]