Overload the equals method in java
Posted
by fastcodejava
on Stack Overflow
See other posts from Stack Overflow
or by fastcodejava
Published on 2010-06-13T04:29:21Z
Indexed on
2010/06/13
4:32 UTC
Read the original article
Hit count: 279
Does anyone overload the equals method in java? The overloaded method will be
public boolean equals(final MyClass myClass)
This will have the benefit of having the relevant comparison part (guts of the method) in another method. Details are in this blog.
© Stack Overflow or respective owner