Glossary: Java Beyond the Basics
equals and hashCode
Also written: equals, hashCode
Methods inherited from Object that say whether two objects are equal and give a number that hash collections use to find candidates. Override both with the same fields; records write them for you.