Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 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");
 }