Record Class AmmFieldMapping
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.amm.api.actions.ammpdf.AmmFieldMapping
-
Constructor Summary
ConstructorsConstructorDescriptionAmmFieldMapping(String fieldName, List<String> supportedForms, Function<AmmFieldInput, @Nullable String> mappingFunction) Creates an instance of aAmmFieldMappingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefieldNamerecord component.final inthashCode()Returns a hash code value for this object.Function<AmmFieldInput, @Nullable String> Returns the value of themappingFunctionrecord component.Returns the value of thesupportedFormsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AmmFieldMapping
public AmmFieldMapping(String fieldName, List<String> supportedForms, Function<AmmFieldInput, @Nullable String> mappingFunction) Creates an instance of aAmmFieldMappingrecord class.- Parameters:
fieldName- the value for thefieldNamerecord componentsupportedForms- the value for thesupportedFormsrecord componentmappingFunction- the value for themappingFunctionrecord 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). -
fieldName
Returns the value of thefieldNamerecord component.- Returns:
- the value of the
fieldNamerecord component
-
supportedForms
-
mappingFunction
Returns the value of themappingFunctionrecord component.- Returns:
- the value of the
mappingFunctionrecord component
-