a che servono i metodi equals e hashcode e perche' vengono spesso considerati in coppia?

grazie in anticipo a tt!