public boolean equals()

in src/main/java/com/amazonaws/services/dynamodbv2/util/ImmutableAttributeValue.java [60:111]


    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        ImmutableAttributeValue other = (ImmutableAttributeValue) obj;
        if (!Arrays.equals(b, other.b))
            return false;
        if (bs == null) {
            if (other.bs != null)
                return false;
        }
        else if (!bs.equals(other.bs)) {
            // Note: this else if block is not auto-generated
            if(other.bs == null)
                return false;
            if(bs.size() != other.bs.size())
                return false;
            for(int i = 0; i < bs.size(); i++) {
                if (!Arrays.equals(bs.get(i), other.bs.get(i)))
                    return false;
            }
            return true;
        }
        if (n == null) {
            if (other.n != null)
                return false;
        }
        else if (!n.equals(other.n))
            return false;
        if (ns == null) {
            if (other.ns != null)
                return false;
        }
        else if (!ns.equals(other.ns))
            return false;
        if (s == null) {
            if (other.s != null)
                return false;
        }
        else if (!s.equals(other.s))
            return false;
        if (ss == null) {
            if (other.ss != null)
                return false;
        }
        else if (!ss.equals(other.ss))
            return false;
        return true;
    }