org.sfm.map.CaseInsensitiveFieldKeyNamePredicate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of simpleFlatMapper Show documentation
Show all versions of simpleFlatMapper Show documentation
Java library to map flat record - ResultSet, csv - to java object with minimum configuration and low footprint.
package org.sfm.map;
import org.sfm.utils.Predicate;
public class CaseInsensitiveFieldKeyNamePredicate implements Predicate> {
private final String name;
public CaseInsensitiveFieldKeyNamePredicate(String name) {
this.name = name;
}
@Override
public boolean test(FieldKey> fieldKey) {
return fieldKey.getName().equalsIgnoreCase(name);
}
}