We don't enforce that attributes (name, type, value tuples) are unique and don't check that both attribute sets contain equal number of duplicate attributes. This will be changed when we enforce attribute name uniqueness after adding SET type support for attributes (MESOS-1215).
| 61 | // enforce attribute name uniqueness after adding SET type support |
| 62 | // for attributes (MESOS-1215). |
| 63 | foreach (const Attribute& attribute, attributes) { |
| 64 | if (!that.contains(attribute)) { |
| 65 | return false; |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | foreach (const Attribute& attribute, that) { |
| 70 | if (!contains(attribute)) { |