- Map<Class<? extends TypeDefinition<?>>, String> tempMap1 = new HashMap<Class<? extends TypeDefinition<?>>, String>(
- 10);
- tempMap1.put(StringType.class, STRING);
- tempMap1.put(BooleanType.class, BOOLEAN);
- tempMap1.put(Int8.class, INTEGER);
- tempMap1.put(Int16.class, INTEGER);
- tempMap1.put(Int32.class, INTEGER);
- tempMap1.put(Int64.class, INTEGER);
- tempMap1.put(Uint16.class, INTEGER);
- tempMap1.put(Uint32.class, INTEGER);
- tempMap1.put(Uint64.class, INTEGER);
- tempMap1.put(Uint8.class, INTEGER);
- tempMap1.put(Decimal64.class, NUMBER);
- tempMap1.put(EnumerationType.class, ENUM);
+ final Builder<Class<?>, String> b = ImmutableMap.builder();
+
+ b.put(StringType.class, STRING);
+ b.put(BooleanType.class, BOOLEAN);
+ b.put(Int8.class, INTEGER);
+ b.put(Int16.class, INTEGER);
+ b.put(Int32.class, INTEGER);
+ b.put(Int64.class, INTEGER);
+ b.put(Uint16.class, INTEGER);
+ b.put(Uint32.class, INTEGER);
+ b.put(Uint64.class, INTEGER);
+ b.put(Uint8.class, INTEGER);
+ b.put(Decimal64.class, NUMBER);
+ b.put(EnumerationType.class, ENUM);