Glossary: Data Structures and Algorithms in Java
equals
Also written: equals()
The method that checks whether two objects are equal in value. Keys must have `equals` and `hashCode` that agree, and strings and `Character` objects must be compared with `equals`, not `==` or `!=`.