News

When overriding equals(), it’s common practice to also override the hashCode() method. See Comparing Java objects with equals () and hashcode () for more about these methods.
Although I’ll use the new java.util.Objects class instead for JDK 7 projects, Guava’s com.google.common.base.Objects class provides a nice alternative for working in versions of Java prior to ...