@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (!(obj instanceof MutableResourceMetadata<?>)) return false; MutableResourceMetadata<?> other = (MutableResourceMetadata<?>) obj; return Objects.equal(id, other.getProviderId()) && Objects.equal(location, other.getLocation()) && Objects.equal(name, other.getName()) && Objects.equal(type, other.getType()) && Objects.equal(uri, other.getUri()); // intentionally not comparing userMetadata }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (!(obj instanceof MutableResourceMetadata<?>)) return false; MutableResourceMetadata<?> other = (MutableResourceMetadata<?>) obj; return Objects.equal(id, other.getProviderId()) && Objects.equal(location, other.getLocation()) && Objects.equal(name, other.getName()) && Objects.equal(type, other.getType()) && Objects.equal(uri, other.getUri()); // intentionally not comparing userMetadata }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (!(obj instanceof MutableResourceMetadata<?>)) return false; MutableResourceMetadata<?> other = (MutableResourceMetadata<?>) obj; return Objects.equal(id, other.getProviderId()) && Objects.equal(location, other.getLocation()) && Objects.equal(name, other.getName()) && Objects.equal(type, other.getType()) && Objects.equal(uri, other.getUri()); // intentionally not comparing userMetadata }
MutableResourceMetadata<?> other = (MutableResourceMetadata<?>) obj; if (id == null) { if (other.getProviderId() != null) return false; } else if (!id.equals(other.getProviderId())) return false; if (location == null) { if (other.getLocation() != null) return false; } else if (!location.equals(other.getLocation())) return false; if (name == null) { if (other.getName() != null) return false; } else if (!name.equals(other.getName())) return false; if (type == null) { if (other.getType() != null) return false; } else if (!type.equals(other.getType())) return false; if (uri == null) { if (other.getUri() != null) return false; } else if (!uri.equals(other.getUri())) return false; return true;
MutableResourceMetadata<?> other = (MutableResourceMetadata<?>) obj; if (id == null) { if (other.getProviderId() != null) return false; } else if (!id.equals(other.getProviderId())) return false; if (location == null) { if (other.getLocation() != null) return false; } else if (!location.equals(other.getLocation())) return false; if (name == null) { if (other.getName() != null) return false; } else if (!name.equals(other.getName())) return false; if (type == null) { if (other.getType() != null) return false; } else if (!type.equals(other.getType())) return false; if (uri == null) { if (other.getUri() != null) return false; } else if (!uri.equals(other.getUri())) return false; return true;
MutableResourceMetadata<?> other = (MutableResourceMetadata<?>) obj; if (id == null) { if (other.getProviderId() != null) return false; } else if (!id.equals(other.getProviderId())) return false; if (location == null) { if (other.getLocation() != null) return false; } else if (!location.equals(other.getLocation())) return false; if (name == null) { if (other.getName() != null) return false; } else if (!name.equals(other.getName())) return false; if (type == null) { if (other.getType() != null) return false; } else if (!type.equals(other.getType())) return false; if (uri == null) { if (other.getUri() != null) return false; } else if (!uri.equals(other.getUri())) return false; return true;