hashCode() method using HashMap
问题 Do I have to override hashCode() method, if I'm going to customize HashMap ? UPD: For example: import java.util.HashMap; import java.util.Objects; /** * * @author dolgopolov.a */ public class SaltEntry { private long time; private String salt; /** * @return the time */ public long getTime() { return time; } /** * @param time the time to set */ public void setTime(long time) { this.time = time; } /** * @return the salt */ public String getSalt() { return salt; } /** * @param salt the salt to