public boolean equals()

in coap/src/main/java/org/apache/mina/coap/CoapOption.java [81:105]


    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }

        if (obj == null) {
            return false;
        }

        if (getClass() != obj.getClass()) {
            return false;
        }

        CoapOption other = (CoapOption) obj;

        if (!Arrays.equals(data, other.data)) {
            return false;
        }

        if (type != other.type) {
            return false;
        }

        return true;
    }