Record Class Unmatched.Delegate
java.lang.Object
java.lang.Record
org.openehealth.ipf.commons.map.Unmatched.Delegate
- All Implemented Interfaces:
Unmatched
- Enclosing interface:
Unmatched
Another mapping answers instead. The named mapping is asked in full - its entries
first and then its own unmatched behaviour - so it is that mapping which finally decides the
outcome, and a chain of delegations ends at the first mapping whose fallback is not itself a
delegation.
This is how a mapping specialises another without restating it: declare the codes that
differ and delegate the rest. Corresponds to unmapped.mode = other-map in FHIR
ConceptMap.
The named mapping must already be registered, which is what makes a cycle impossible to
declare. A name without a version also finds the only mapping registered as
name|version, the way a versionless FHIR canonical refers to the one version at
hand; with several such versions it is ambiguous and rejected.
- Since:
- 6.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface Unmatched
Unmatched.Absent, Unmatched.Computed, Unmatched.Delegate, Unmatched.Fail, Unmatched.Fixed, Unmatched.Identity -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.mapping()Returns the value of themappingrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Delegate
Creates an instance of aDelegaterecord class.- Parameters:
mapping- the value for themappingrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
mapping
Returns the value of themappingrecord component.- Returns:
- the value of the
mappingrecord component
-