private static Map<String, Object> canonicalizeMap(final Map<String, Object> from) { final Map<String, Object> canonicalized = new LinkedHashMap<String, Object>(from.size()); final TreeSet<String> keysInOrder = new TreeSet<String>(from.keySet()); for (final String key : keysInOrder) { final Object val = from.get(key); canonicalized.put(key, canonicalize(val)); } return canonicalized; }
private static void initializeMap() { columnToKey.put(10, "term"); columnToKey.put(12, "chief"); columnToKey.put(17, "petitioner"); columnToKey.put(19, "respondent"); columnToKey.put(41, "issueArea"); columnToKey.put(42, "decisionDirection"); columnToKey.put(46, "lawType"); }