comparison src/org/eclipse/jetty/io/StringCache.java @ 1023:27f3dc761452

MimeTypes uses StringCache
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 01 Nov 2016 03:44:46 -0600
parents 3718afd99988
children
comparison
equal deleted inserted replaced
1022:3718afd99988 1023:27f3dc761452
28 28
29 public boolean contains(String value) { 29 public boolean contains(String value) {
30 return stringToOrdinal.containsKey(value.toLowerCase()); 30 return stringToOrdinal.containsKey(value.toLowerCase());
31 } 31 }
32 32
33 public String get(String value)
34 {
35 return stringMap.get(value.toLowerCase());
36 }
37
33 public String getBest(String key) { 38 public String getBest(String key) {
34 key = key.toLowerCase(); 39 key = key.toLowerCase();
35 String rtn = stringMap.get(key); 40 String rtn = stringMap.get(key);
36 if( rtn != null ) 41 if( rtn != null )
37 return rtn; 42 return rtn;