0

This question explains a lot about Java conventions (I'm not sure how exactly they call this).

I'm just curious, is there any name given for a simple class (or POJO) which overrides equals() and hashCode() methods?

Community
  • 1
  • 1
Mawia
  • 4,220
  • 13
  • 40
  • 55
  • 3
    I think it's still called a POJO. `equals` and `hashCode` are not considered "extra" or "fancy" methods -- they're a natural part of any plain ol' Java object. – yshavit Apr 04 '13 at 13:25

2 Answers2

0

No, there is no specific name for such POJO :)

mavarazy
  • 7,562
  • 1
  • 34
  • 60
0

I would name it: AGoodCandidateForHashTableContentPOJO => Java creators guys probably thought about that but no, there isn't a special naming for hashcode/equals concept ;)

Mik378
  • 21,881
  • 15
  • 82
  • 180