@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } Bucket that = (Bucket) o; return resource.equals(that.resource); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } Bucket that = (Bucket) o; return resource.equals(that.resource); }
private boolean canWeLinkNodes(@Nullable Resource from, @Nullable Resource to) { return from != null && to != null && !from.equals(to); }
private static boolean canWeLinkNodes(@Nullable Resource from, @Nullable Resource to) { return from != null && to != null && !from.equals(to); }