Get a map of type values to type names. @return map
()
| 262 | * @return map |
| 263 | */ |
| 264 | public static Map<Byte, String> genTypeToNameMap(){ |
| 265 | byte[] types = genAllTypes(); |
| 266 | String[] names = genAllTypeNames(); |
| 267 | Map<Byte,String> ret = new HashMap<Byte, String>(); |
| 268 | for(int i=0;i<types.length;i++){ |
| 269 | ret.put(types[i], names[i]); |
| 270 | } |
| 271 | return ret; |
| 272 | } |
| 273 | |
| 274 | /** |
| 275 | * Get a map of type names to type values. |