Code example for Map

Methods: hashCode

0
 
    @Override 
    public int hashCode() { 
        final int prime = 31;
        int result = 1;
        result = prime * result + (this.result == null ? 0 : this.result.hashCode());
        return result;
    } 
 
 
    @Override 
    public String toString() {
        return "StatsResult [result=" + result + "]";
    } 
 
 
    @Override 
    public boolean equals(Object obj) {
        if (this == obj) {
            return true; 
Contextual code suggestions in your IDE  Get Codota for Java