Conceptual doubt on find function

The .equals function compares the values right? then when we pass a HTPair with key and value null. Why is it only comparing the values of only Key and not value?

@Rishabh8488 bro have you seen construction part-1? because if you have viewed it then you can check this:-
public boolean equals(Object other) {
HTPair op = (HTPair) (other);
return this.key.equals(op.key);
}
Here equals is custom implemented.
If ya query is clear mark it resolved…