equals and hashCode method must be consistent, which means that when two objects are equal according to equals method their hash
equals
hashCode
hash
For starters, you need to capitalize the v in "Hashvalue"
if(oo instanceof Hashvalue)
should be
if (oo instanceof HashValue)