/** * Factory method for constructing case-insensitive {@link FieldNameMatcher} * for given names. It will call {@link String#intern} on names unless specified * that this has already been done by caller. * * @param matches Names to match, including both primary names and possible aliases */ public FieldNameMatcher constructCIFieldNameMatcher(List<Named> matches, boolean alreadyInterned) { return SimpleNameMatcher.constructCaseInsensitive(matches, alreadyInterned); }
public static SimpleNameMatcher constructCaseInsensitive(List<Named> fields, boolean alreadyInterned) { return constructCaseInsensitive(stringsFromNames(fields, alreadyInterned)); }
public static BinaryNameMatcher constructCaseInsensitive(List<Named> fields, boolean alreadyInterned) { final List<String> names = FieldNameMatcher.stringsFromNames(fields, alreadyInterned); return _construct(names, SimpleNameMatcher.constructCaseInsensitive(names)); }