@Test public void shouldMapTypedList() { final ArrayNode<IJsonNode> input = new ArrayNode<IJsonNode>(); input.add(IntNode.valueOf(1)); input.add(TextNode.valueOf("test")); final List<String> expected = new ArrayList<String>(); expected.add("1"); expected.add("test"); final Object actual = this.mapper.map(input, null, new TypeToken<List<String>>() { }.getType()); Assert.assertEquals(expected, actual); }
public <T> T map(final IJsonNode from) { return this.map(from, null, this.getDefaultMappingType(from.getClass())); }
JsonToJavaMapper extends AbstractTypeMapper<TypeMapper<?, ?>> { public <T> T map(final IJsonNode from) { return this.map(from, null, this.getDefaultMappingType(from.getClass())); } }
JsonToJavaMapper extends AbstractTypeMapper<TypeMapper<?, ?>> { public <T> T map(final IJsonNode from) { return this.map(from, null, this.getDefaultMappingType(from.getClass())); } protected  JsonToJavaMapper(); }
JsonToJavaMapper extends AbstractTypeMapper<TypeMapper<?, ?>> { public <T> T map(final IJsonNode from) { return this.map(from, null, this.getDefaultMappingType(from.getClass())); } protected  JsonToJavaMapper(); @SuppressWarnings("unchecked") TypeMapper<F, T> getMapper(final Class<F> fromClass, final Class<T> targetType); T map(final IJsonNode from); T map(final IJsonNode from, final T to); T map(final IJsonNode from, final T to, final Class<T> targetType); T map(final IJsonNode from, T to, final Type targetType); }
JsonToJavaMapper extends AbstractTypeMapper<TypeMapper<?, ?>> { public <T> T map(final IJsonNode from) { return this.map(from, null, this.getDefaultMappingType(from.getClass())); } protected  JsonToJavaMapper(); @SuppressWarnings("unchecked") TypeMapper<F, T> getMapper(final Class<F> fromClass, final Class<T> targetType); T map(final IJsonNode from); T map(final IJsonNode from, final T to); T map(final IJsonNode from, final T to, final Class<T> targetType); T map(final IJsonNode from, T to, final Type targetType); static final JsonToJavaMapper INSTANCE; }