You overloaded your method instead of overriding it.
Always use
@Override annotation when overriding methods (using it produces a compiler error when you make a mistake in overriding).
Your method signature should be
Also, your method does not stick to the contract of
Object#equals.
It will throw NullPointerException if you pass
null to it.
According to the contract it should return
false.
By the way, please
UseCodeTags (← click this) when posting. I added them for you this time. Doesn't it look better?