@Override public boolean equals(final Object other) { if (other instanceof ComplexEntity) { return other.getClass().equals(this.getClass()) && this.getSource().equals(((ComplexEntity) other).getSource()); } return false; }
@Override public boolean equals(final Object other) { // Override the regular equals(Object) method that only looks at the source if (other instanceof BigNode) { return this.getSource().equals(((BigNode) other).getSource()) && this.nodes().equals(((BigNode) other).nodes()); } return false; }
/** * Checks if an {@link AtlasObject} is a outline or part member of a building relation. This is * an equivalent tagging to building=* or building:part=yes. * * @param object * {@link AtlasObject} to check * @return true if the object is part of any relation where it has role outline or part */ private boolean isBuildingRelationMember(final AtlasObject object) { return object instanceof AtlasEntity && ((AtlasEntity) object).relations().stream() .anyMatch(relation -> Validators.isOfType(relation, RelationTypeTag.class, RelationTypeTag.BUILDING) && relation.members().stream() .anyMatch(member -> member.getEntity().equals(object) && (member.getRole().equals("outline")) || member.getRole().equals("part"))); }
@Override public boolean equals(final Object other) { if (other instanceof FeatureChange) { final FeatureChange that = (FeatureChange) other; return this.getChangeType() == that.getChangeType() && this.getReference().equals(that.getReference()); } return false; }
.stream().filter(member -> !member.getEntity().equals(edge)) .collect(Collectors.toList())); return CompleteRelation.shallowFrom(relation)