Class Jdk8TypeModifier
java.lang.Object
com.fasterxml.jackson.databind.type.TypeModifier
com.fasterxml.jackson.datatype.jdk8.Jdk8TypeModifier
- All Implemented Interfaces:
Serializable
We need to ensure `Optional` is a `ReferenceType`
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmodifyType(JavaType type, Type jdkType, TypeBindings bindings, TypeFactory typeFactory) Method called to let modifier change constructed type definition.
-
Constructor Details
-
Jdk8TypeModifier
public Jdk8TypeModifier()
-
-
Method Details
-
modifyType
public JavaType modifyType(JavaType type, Type jdkType, TypeBindings bindings, TypeFactory typeFactory) Description copied from class:TypeModifierMethod called to let modifier change constructed type definition. Note that this is only guaranteed to be called for non-container types ("simple" types not recognized as arrays,java.util.Collectionorjava.util.Map).- Specified by:
modifyTypein classTypeModifier- Parameters:
type- Instance to modifyjdkType- JDK type that was used to construct instance to modifybindings- Type resolution context used for the typetypeFactory- Type factory that can be used to construct parameter type; note, however, that care must be taken to avoid infinite loops -- specifically, do not construct instance of primary type itself- Returns:
- Actual type instance to use; usually either
type(as is or with modifications), or a newly constructed type instance based on it. Cannot be null.
-