@Test public void identifiesCorrectClass() { assertEquals("unexpected type returned from translator", ParentType.class, test.getTranslatedType()); }
Class<?> getTranslatedType() { return clazz; }
AbstractJsonTranslator { Class<?> getTranslatedType() { return clazz; } }
AbstractJsonTranslator { Class<?> getTranslatedType() { return clazz; } AbstractJsonTranslator(Class<? extends AbstractJsonTranslator<?>> subclass); }
AbstractJsonTranslator { Class<?> getTranslatedType() { return clazz; } AbstractJsonTranslator(Class<? extends AbstractJsonTranslator<?>> subclass); T fromJSON(String json); @SuppressWarnings("unchecked") T fromJSON(Reader reader); String toJSON(T value); void toJSON(Writer writer, T value); void usePrettyPrinter(); void disablePrettyPrint(); }
AbstractJsonTranslator { Class<?> getTranslatedType() { return clazz; } AbstractJsonTranslator(Class<? extends AbstractJsonTranslator<?>> subclass); T fromJSON(String json); @SuppressWarnings("unchecked") T fromJSON(Reader reader); String toJSON(T value); void toJSON(Writer writer, T value); void usePrettyPrinter(); void disablePrettyPrint();  }