Exemplo n.º 1
0
 public ObjectReader withValueToUpdate(Object value) {
   if (value == _valueToUpdate) return this;
   if (value == null) {
     throw new IllegalArgumentException("cat not update null value");
   }
   JavaType t = _config.constructType(value.getClass());
   return new ObjectReader(this, _config, t, value, _schema, _injectableValues);
 }
Exemplo n.º 2
0
 public ObjectReader withType(Class<?> valueType) {
   return withType(_config.constructType(valueType));
 }