SF
- Source field type.TF
- Target field type.@FunctionalInterface public interface FieldMatcher<SF extends Field,TF extends Field>
Modifier and Type | Method and Description |
---|---|
static <SF extends Field,TF extends Field> |
getMatcherByIndex()
Return
true if the source field's index equals the target field's index |
static <SF extends Field,TF extends Field> |
getMatcherByLabel()
Returns
true if the source field's label equals the target field's label (case-sensitive). |
static <SF extends Field,TF extends Field> |
getMatcherByLabelIgnoreCase()
Returns
true if the source field's label equals the target field's label (case-insensitive). |
boolean |
match(SF source,
TF target)
Returns
true if the source field matches the target field. |
static <SF extends Field,TF extends Field> FieldMatcher<SF,TF> getMatcherByLabel()
true
if the source field's label equals the target field's label (case-sensitive).Field.getLabel()
static <SF extends Field,TF extends Field> FieldMatcher<SF,TF> getMatcherByLabelIgnoreCase()
true
if the source field's label equals the target field's label (case-insensitive).Field.getLabel()
static <SF extends Field,TF extends Field> FieldMatcher<SF,TF> getMatcherByIndex()
true
if the source field's index equals the target field's indexField.getIndex()