/** * @since 1.9 */ public JavaType withValueHandler(Object h) { /* 16-Aug-2011, tatu: This is not entirely correct, as we can not * create new immutable instances. However, sub-classes can, * so if mapper is version 1.9, things work as expected. * Otherwise, in 2.0 we can make this method abstract. */ setValueHandler(h); return this; }
/** * @since 1.9 */ public JavaType withContentValueHandler(Object h) { /* 16-Aug-2011, tatu: This is not entirely correct, as we can not * create new immutable instances. However, sub-classes can, * so if mapper is version 1.9, things work as expected. * Otherwise, in 2.0 we can make this method abstract. */ getContentType().setValueHandler(h); return this; }
/** * @since 1.9 */ public JavaType withValueHandler(Object h) { /* 16-Aug-2011, tatu: This is not entirely correct, as we can not * create new immutable instances. However, sub-classes can, * so if mapper is version 1.9, things work as expected. * Otherwise, in 2.0 we can make this method abstract. */ setValueHandler(h); return this; }
keyType.setValueHandler(kd); type.getContentType().setValueHandler(cd);
keyType.setValueHandler(kd); type.getContentType().setValueHandler(cd);
/** * @since 1.9 */ public JavaType withContentValueHandler(Object h) { /* 16-Aug-2011, tatu: This is not entirely correct, as we can not * create new immutable instances. However, sub-classes can, * so if mapper is version 1.9, things work as expected. * Otherwise, in 2.0 we can make this method abstract. */ getContentType().setValueHandler(h); return this; }
/** * @since 1.9 */ public JavaType withValueHandler(Object h) { /* 16-Aug-2011, tatu: This is not entirely correct, as we can not * create new immutable instances. However, sub-classes can, * so if mapper is version 1.9, things work as expected. * Otherwise, in 2.0 we can make this method abstract. */ setValueHandler(h); return this; }
keyType.setValueHandler(kd); type.getContentType().setValueHandler(cd);
keyType.setValueHandler(kd); type.getContentType().setValueHandler(cd);
/** * @since 1.9 */ public JavaType withContentValueHandler(Object h) { /* 16-Aug-2011, tatu: This is not entirely correct, as we can not * create new immutable instances. However, sub-classes can, * so if mapper is version 1.9, things work as expected. * Otherwise, in 2.0 we can make this method abstract. */ getContentType().setValueHandler(h); return this; }
/** * More efficient version of {@link #narrowBy}, called by * internal framework in cases where compatibility checks * are to be skipped. * * @since 1.5 */ public final JavaType forcedNarrowBy(Class<?> subclass) { if (subclass == _class) { // can still optimize for simple case return this; } JavaType result = _narrow(subclass); if (_valueHandler != null) { result.setValueHandler(_valueHandler); } if (_typeHandler != null) { result = result.withTypeHandler(_typeHandler); } return result; }
/** * Method that can be called to do a "narrowing" conversions; that is, * to return a type with a raw class that is assignable to the raw * class of this type. If this is not possible, an * {@link IllegalArgumentException} is thrown. * If class is same as the current raw class, instance itself is * returned. */ public final JavaType narrowBy(Class<?> subclass) { // First: if same raw class, just return this instance if (subclass == _class) { return this; } // Otherwise, ensure compatibility _assertSubclass(subclass, _class); JavaType result = _narrow(subclass); if (_valueHandler != null) { result.setValueHandler(_valueHandler); } if (_typeHandler != null) { result = result.withTypeHandler(_typeHandler); } return result; }
if (kdClass != null && kdClass != KeyDeserializer.None.class) { KeyDeserializer kd = config.keyDeserializerInstance(a, kdClass); keyType.setValueHandler(kd); if (cdClass != null && cdClass != JsonDeserializer.None.class) { JsonDeserializer<Object> cd = config.deserializerInstance(a, cdClass); type.getContentType().setValueHandler(cd);
keyType.setValueHandler(kd); type.getContentType().setValueHandler(cd);
keyType.setValueHandler(kd); type.getContentType().setValueHandler(cd);
if (kdClass != null && kdClass != KeyDeserializer.None.class) { KeyDeserializer kd = config.keyDeserializerInstance(member, kdClass); keyType.setValueHandler(kd); if (cdClass != null && cdClass != JsonDeserializer.None.class) { JsonDeserializer<Object> cd = config.deserializerInstance(member, cdClass); type.getContentType().setValueHandler(cd);
keyType.setValueHandler(kd); type.getContentType().setValueHandler(cd);
keyType.setValueHandler(kd); type.getContentType().setValueHandler(cd);