@Documented @Inherited @Retention(value=RUNTIME) @Target(value={FIELD,TYPE}) public @interface DecodeUndefinedHandlingStrategy
de.bild.codec.PojoCodecProvider.Builder#decodeUndefinedHandlingStrategy(Strategy)
If not set, default is DecodeUndefinedHandlingStrategy.Strategy.KEEP_POJO_DEFAULT (due to historical behaviour of PojoCodecProvider)
You can use this annotation at class level or at field level. If you use it at class level, you can override each field with
a field level annotation.
DecodeUndefinedHandlingStrategy.Strategy.SET_TO_NULL sets the value of the field to null, even if the pojo provides a default valueDecodeUndefinedHandlingStrategy.Strategy.CODEC TypeCodec.defaultInstance() is being used to initialize the field, even if the pojo provides a default valueDecodeUndefinedHandlingStrategy.Strategy.KEEP_POJO_DEFAULT keeps the pojo default, could be null or anything set during creation (constructor or default initialization of the field)| Modifier and Type | Required Element and Description |
|---|---|
DecodeUndefinedHandlingStrategy.Strategy |
value |
public abstract DecodeUndefinedHandlingStrategy.Strategy value
Copyright © 2021 BILD GmbH & Co. KG. All rights reserved.