Interface EquivalenceRelation
- All Known Implementing Classes:
SameLabel, SameShortId
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Binary predicate that decides whether two
ElementViews belong to the
same equivalence class and should therefore be merged.
Implementations must be reflexive, symmetric, and transitive.
CompositionOperator applies this relation to compute the partition
automatically — callers do not need to drive the pairing loop themselves.
The parameter type is ElementView rather than SourcedElement
so that the same relation can be applied both during Phase 1 composition
(where inputs are SourcedElements) and during Phase 4 unification in
Unifier (where inputs are
ElementCreationCommands). Both
types implement ElementView.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnstrueifaandbshould be merged into the same result element.
-
Method Details
-
areEquivalent
Returnstrueifaandbshould be merged into the same result element.
-