Hi.

I found a bug in the implementation of the method `equals` of class `Pair`.

Implementation must be symmetric. Current implementation is not.

Her test showing the problem:

```

@Test
void run() {
    var pair = Pair.of("a", "b");
    var entry = new Map.Entry<String, String>() {
        public String getKey() { return "a"; }
        public String getValue() { return "b"; }
        public String setValue(String value) { return null; }
    };
    assertTrue(pair.equals(entry)); // true
    assertTrue(entry.equals(pair)); // false
}
```

Reply via email to