Exemplo n.º 1
0
 public <T> GensonBuilder withSerializer(Serializer<T> serializer, GenericType<? extends T> type) {
   registerSerializer(serializer, type.getType());
   return this;
 }
Exemplo n.º 2
0
 public <T> GensonBuilder withDeserializer(
     Deserializer<T> deserializer, GenericType<? extends T> type) {
   registerDeserializer(deserializer, type.getType());
   return this;
 }
Exemplo n.º 3
0
 /**
  * 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;
 }