@Test public void testCreate() throws Exception { new TypedMap(recordType); Map<String, Object> values = new HashMap<String, Object>(); values.put("intValue", 1); values.put("booleanValue", true); values.put("stringArray", new String[] { "a", "b", "c" }); new TypedMap(recordType, values); Map<String, Object> values2 = new HashMap<String, Object>(); values2.put("intValue", 1); values2.put("booleanValue", "false"); values2.put("stringArray", new String[] { "a", "b", "c" }); try { new TypedMap(recordType, values2); fail(); } catch (UnassignableValueException e) { } Map<String, Object> values3 = new HashMap<String, Object>(); values3.put("intValue", 1); values3.put("longValue", 52L); values3.put("stringArray", new String[] { "a", "b", "c" }); try { new TypedMap(recordType, values3); fail(); } catch (NoSuchRecordFieldException e) { } }
public Object put(String arg0, Object arg1) { return inner.put(arg0, convertToTypedObject(arg0, arg1)); }
TypedMap implements Map<String, Object> { public Object put(String arg0, Object arg1) { return inner.put(arg0, convertToTypedObject(arg0, arg1)); } }
TypedMap implements Map<String, Object> { public Object put(String arg0, Object arg1) { return inner.put(arg0, convertToTypedObject(arg0, arg1)); } TypedMap(final RecordType type);  TypedMap(final RecordType type, final Map<? extends String, ? extends Object> map); }
TypedMap implements Map<String, Object> { public Object put(String arg0, Object arg1) { return inner.put(arg0, convertToTypedObject(arg0, arg1)); } TypedMap(final RecordType type);  TypedMap(final RecordType type, final Map<? extends String, ? extends Object> map); RecordType getType(); Type getFieldType(final String fieldName); void clear(); boolean containsKey(Object arg0); boolean containsValue(Object arg0); Set<Entry<String, Object>> entrySet(); Object get(Object arg0); boolean isEmpty(); Set<String> keySet(); Object put(String arg0, Object arg1); void putAll(Map<? extends String, ? extends Object> arg0); Object remove(Object arg0); int size(); Collection<Object> values(); @Override int hashCode(); @Override boolean equals(Object obj); }
TypedMap implements Map<String, Object> { public Object put(String arg0, Object arg1) { return inner.put(arg0, convertToTypedObject(arg0, arg1)); } TypedMap(final RecordType type);  TypedMap(final RecordType type, final Map<? extends String, ? extends Object> map); RecordType getType(); Type getFieldType(final String fieldName); void clear(); boolean containsKey(Object arg0); boolean containsValue(Object arg0); Set<Entry<String, Object>> entrySet(); Object get(Object arg0); boolean isEmpty(); Set<String> keySet(); Object put(String arg0, Object arg1); void putAll(Map<? extends String, ? extends Object> arg0); Object remove(Object arg0); int size(); Collection<Object> values(); @Override int hashCode(); @Override boolean equals(Object obj);  }