@Override public List<Relation> allRelationsWithSameOsmIdentifier() { return subRelation().allRelationsWithSameOsmIdentifier().stream() .map(relation -> new DynamicRelation(dynamicAtlas(), relation.getIdentifier())) .collect(Collectors.toList()); }
public static CompleteRelation from(final Relation relation) { return new CompleteRelation(relation.getIdentifier(), relation.getTags(), relation.bounds(), relation.members().asBean(), relation.allRelationsWithSameOsmIdentifier().stream().map(Relation::getIdentifier) .collect(Collectors.toList()), relation.allKnownOsmMembers().asBean(), relation.osmRelationIdentifier(), relation.relations().stream().map(Relation::getIdentifier) .collect(Collectors.toSet())); }
final Set<Long> mergedAllRelationsWithSameOsmIdentifierSet = mergedMember( "allRelationsWithSameOsmIdentifier", thisReference, thatReference, atlasEntity -> ((Relation) atlasEntity).allRelationsWithSameOsmIdentifier() == null ? null : ((Relation) atlasEntity).allRelationsWithSameOsmIdentifier().stream() .map(Relation::getIdentifier).collect(Collectors.toSet()), Optional.of(directReferenceMerger));