-
- Type Parameters:
SF
- Source field type.TF
- Target field type.
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface FieldMatcher<SF extends Field,TF extends Field>
Strategy to match source fields with target fields when mapping fields.- Since:
- 4.1.0
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static <SF extends Field,TF extends Field>
FieldMatcher<SF,TF>getMatcherByIndex()
Returntrue
if the source field's index equals the target field's indexstatic <SF extends Field,TF extends Field>
FieldMatcher<SF,TF>getMatcherByLabel()
Returnstrue
if the source field's label equals the target field's label (case-sensitive).static <SF extends Field,TF extends Field>
FieldMatcher<SF,TF>getMatcherByLabelIgnoreCase()
Returnstrue
if the source field's label equals the target field's label (case-insensitive).boolean
match(SF source, TF target)
Returnstrue
if the source field matches the target field.
-
-
-
Method Detail
-
getMatcherByLabel
static <SF extends Field,TF extends Field> FieldMatcher<SF,TF> getMatcherByLabel()
Returnstrue
if the source field's label equals the target field's label (case-sensitive).- See Also:
Field.getLabel()
-
getMatcherByLabelIgnoreCase
static <SF extends Field,TF extends Field> FieldMatcher<SF,TF> getMatcherByLabelIgnoreCase()
Returnstrue
if the source field's label equals the target field's label (case-insensitive).- See Also:
Field.getLabel()
-
getMatcherByIndex
static <SF extends Field,TF extends Field> FieldMatcher<SF,TF> getMatcherByIndex()
Returntrue
if the source field's index equals the target field's index- See Also:
Field.getIndex()
-
-