@Test public void testConvert() throws ParseException { assertEquals("1", converter.convert(1l, TypeToken.of(String.class))); assertEquals("test", converter.convert("test", TypeToken.of(String.class))); assertEquals("true", converter.convert(true, TypeToken.of(String.class))); }
@Override public Object convert(Object source, TypeToken<?> targetTypeToken) { return String.valueOf(source); }
ObjectToStringConverter extends AbstractConverter { @Override public Object convert(Object source, TypeToken<?> targetTypeToken) { return String.valueOf(source); } }
ObjectToStringConverter extends AbstractConverter { @Override public Object convert(Object source, TypeToken<?> targetTypeToken) { return String.valueOf(source); } ObjectToStringConverter();  ObjectToStringConverter(int priority); }
ObjectToStringConverter extends AbstractConverter { @Override public Object convert(Object source, TypeToken<?> targetTypeToken) { return String.valueOf(source); } ObjectToStringConverter();  ObjectToStringConverter(int priority); @Override Object convert(Object source, TypeToken<?> targetTypeToken); @Override boolean canHandle(Object source, TypeToken<?> targetTypeToken); }
ObjectToStringConverter extends AbstractConverter { @Override public Object convert(Object source, TypeToken<?> targetTypeToken) { return String.valueOf(source); } ObjectToStringConverter();  ObjectToStringConverter(int priority); @Override Object convert(Object source, TypeToken<?> targetTypeToken); @Override boolean canHandle(Object source, TypeToken<?> targetTypeToken);  }