@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; LwM2mMultipleResource other = (LwM2mMultipleResource) obj; if (id != other.id) return false; if (type != other.type) return false; if (values == null) { if (other.values != null) return false; // Custom equals to handle byte arrays } else if (!internalMapEquals(values, other.values)) return false; return true; }