Code example for Set

Methods: hashCode

0
    public boolean equals(Object obj) {
        return map.keySet().equals(obj);
    } 
 
    public int hashCode() { 
        return map.keySet().hashCode();
    } 
 
}