Code example for Map

Methods: hashCode

0
 
    @Override 
    public synchronized int hashCode() { 
        final int prime = 31;
        int result = 1;
        result = prime * result + (this.internalMap == null ? 0 : this.internalMap.hashCode());
        return result;
    } 
 
 
    @Override 
    public synchronized boolean equals(Object obj) {
        if (this == obj) {
            return true; 
        } 
        if (obj == null) {
            return false; 
        } 
        if (this.getClass() != obj.getClass()) {
            return false; 
        }