@Override public Parser<String, Object> makeParser() { return new JSONToLowerParser(objectMapper, null, null); }
public JSONToLowerParser(ObjectMapper objectMapper, Iterable<String> fieldNames, Iterable<String> exclude) { this.objectMapper = objectMapper; if (fieldNames != null) { setFieldNames(fieldNames); } this.exclude = exclude != null ? Sets.newHashSet(Iterables.transform(exclude, StringUtils::toLowerCase)) : new HashSet<>(); }
@Override public Parser<String, Object> makeParser() { return new JSONToLowerParser(objectMapper, null, null); }
public JSONToLowerParser( ObjectMapper objectMapper, Iterable<String> fieldNames, Iterable<String> exclude ) { this.objectMapper = objectMapper; if (fieldNames != null) { setFieldNames(fieldNames); } this.exclude = exclude != null ? Sets.newHashSet(Iterables.transform(exclude, StringUtils::toLowerCase)) : Sets.newHashSet(); }