@Override public boolean equals(Object object) { if (object instanceof RelationSchema) { RelationSchema otherSchema = (RelationSchema) object; if (!name.equals(otherSchema.getName())) { return false; } if (!attributes.equals(otherSchema.getAttributes())) { return false; } if (!functionalDependencies.equals(otherSchema.getFunctionalDependencies())) { return false; } } return true; }