Pregunta de entrevista de Luxoft

What's a contract between equals() and hashcode()?