if (!other.getAttribute(name).equals(getAttribute(name)))
if (!other.get(name).equals(get(name)))
    public boolean equals(Object object) {        if (!(object instanceof AttributeSet))            return false;        AttributeSet other = (AttributeSet)object;        if (size() != other.size())            return false;        Iterator names = other.names().iterator();        while (names.hasNext()) {            String name = (String)names.next();            if (!other.getAttribute(name).equals(getAttribute(name)))                return false;        }        return true;    }