public <T> GensonBuilder withSerializer(Serializer<T> serializer, GenericType<? extends T> type) { registerSerializer(serializer, type.getType()); return this; }
public <T> GensonBuilder withDeserializer( Deserializer<T> deserializer, GenericType<? extends T> type) { registerDeserializer(deserializer, type.getType()); return this; }
/** * Register converter by mapping it to the parameterized type of type argument. * * @param converter to register * @param type of objects this converter handles * @return a reference to this builder. */ public <T> GensonBuilder withConverter(Converter<T> converter, GenericType<? extends T> type) { registerConverter(converter, type.getType()); return this; }