1 package org.sourceforge.vlibrary.util;
2
3 import java.util.Map;
4
5
6
7
8
9
10
11 public class Utils {
12
13
14
15
16
17
18
19
20
21
22 public static Object getIgnoreCase(Map<String, Object> m, String s) {
23 Object result = m.get(s);
24 if (result != null) {
25 return result;
26 }
27 String t = s.toLowerCase();
28 result = m.get(t);
29 if (result != null) {
30 return result;
31 }
32 t = s.toUpperCase();
33 result = m.get(t);
34 if (result != null) {
35 return result;
36 }
37 return null;
38 }
39 }