SimpleType for types that are allow iteration
over Collection(-like) types: this includes types like
java.util.Iterator .
Iterated (content) type is accessible using getContentType().
| Modifier and Type | Field and Description |
|---|---|
| protected final JavaType | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| protected | IterationType(Class<?> cls, TypeBindings bindings, JavaType superClass, JavaType[] superInts, JavaType iteratedType, Object valueHandler, Object typeHandler, boolean asStatic)
|
| protected | IterationType(TypeBase base, JavaType iteratedType)
Constructor used when upgrading into this type (via |
| Modifier and Type | Method and Description |
|---|---|
| protected String | |
| public static IterationType | |
| public JavaType | getContentType()
Overrides com. |
| public StringBuilder | getErasedSignature(StringBuilder
StringBuilder to append signature to sb)Overrides com. |
| public StringBuilder | getGenericSignature(StringBuilder
StringBuilder to append signature to sb)Overrides com. |
| public boolean | hasContentType()
Overrides com. getContentType() should
return a non-null value (that is, there is a "content type") or not.
|
| public boolean | isIterationType()
Overrides com. IterationType.
|
| public JavaType | refine(Class<?> rawType, TypeBindings bindings, JavaType superClass, JavaType[] superInterfaces)
Overrides com. |
| public static IterationType | upgradeFrom(JavaType
Resolved non-iteration type (usually baseType, JavaType SimpleType) that is being upgradedIterated type; usually the first and only type parameter, but not necessarily iteratedType)Factory method that can be used to "upgrade" a basic type into iteration
type; usually done via |
| public JavaType | withContentType(JavaType contentType)
Overrides com. |
| public IterationType | withContentTypeHandler(Object
Handler to pass to new instance created h)Overrides com. |
| public IterationType | withContentValueHandler(Object
Handler to pass to new instance created h)Overrides com. |
| public IterationType | withStaticTyping()
Overrides com. |
| public IterationType | withTypeHandler(Object
Handler to pass to new instance created h)Overrides com. |
| public IterationType | withValueHandler(Object
Handler to pass to new instance created h)Overrides com. |
| _iteratedType | back to summary |
|---|---|
| protected final JavaType _iteratedType | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| IterationType | back to summary |
|---|---|
| protected IterationType(Class<?> cls, TypeBindings bindings, JavaType superClass, JavaType[] superInts, JavaType iteratedType, Object valueHandler, Object typeHandler, boolean asStatic) | |
| IterationType | back to summary |
|---|---|
| protected IterationType(TypeBase base, JavaType iteratedType) Constructor used when upgrading into this type (via | |
| buildCanonicalName | back to summary |
|---|---|
| protected String buildCanonicalName() Overrides com.
| |
| construct | back to summary |
|---|---|
| public static IterationType construct(Class<?> cls, TypeBindings bindings, JavaType superClass, JavaType[] superInts, JavaType iteratedType) | |
| getContentType | back to summary |
|---|---|
| public JavaType getContentType() Overrides com. Doc from com. Method for accessing content type of this type, if type has such a thing: simple types do not, structured types do (like arrays, Collections and Maps) | |
| getErasedSignature | back to summary |
|---|---|
| public StringBuilder getErasedSignature(StringBuilder sb) Overrides com. Doc from com. Method for accessing signature without generic type information, in form compatible with all versions of JVM, and specifically used for type descriptions when generating byte code.
| |
| getGenericSignature | back to summary |
|---|---|
| public StringBuilder getGenericSignature(StringBuilder sb) Overrides com.
| |
| hasContentType | back to summary |
|---|---|
| public boolean hasContentType() Overrides com. Doc from com. Accessor that allows determining whether
| |
| isIterationType | back to summary |
|---|---|
| public boolean isIterationType() Overrides com. Doc from com. Method that returns true if this instance is of type
| |
| refine | back to summary |
|---|---|
| public JavaType refine(Class<?> rawType, TypeBindings bindings, JavaType superClass, JavaType[] superInterfaces) Overrides com. Doc from com. Mutant factory method that will try to create and return a sub-type instance for known parameterized types; for other types will return `null` to indicate that no just refinement makes necessary sense, without trying to detect special status through implemented interfaces.
| |
| upgradeFrom | back to summary |
|---|---|
| public static IterationType upgradeFrom(JavaType baseType, JavaType iteratedType) Factory method that can be used to "upgrade" a basic type into iteration
type; usually done via
| |
| withContentType | back to summary |
|---|---|
| public JavaType withContentType(JavaType contentType) Overrides com. Doc from com. Mutant factory method that may be called on structured types
that have a so-called content type (element of arrays, value type
of Maps, referenced type of referential types),
and will construct a new instance that is identical to
this instance, except that it has specified content type, instead of current
one. If content type is already set to given type, | |
| withContentTypeHandler | back to summary |
|---|---|
| public IterationType withContentTypeHandler(Object h) Overrides com. Doc from com. Internal method that should not be used by any code outside of jackson-databind: only used internally by databind. May be removed from Jackson 3.0. This mutant factory method will construct a new instance that is identical to this instance, except that it will have specified content type (element type for arrays, value type for Maps and so forth) handler assigned.
| |
| withContentValueHandler | back to summary |
|---|---|
| public IterationType withContentValueHandler(Object h) Overrides com. Doc from com. Internal method that should not be used by any code outside of jackson-databind: only used internally by databind. May be removed from Jackson 3.0. Mutant factory method that will construct a new instance that is identical to this instance, except that it will have specified content value handler assigned.
| |
| withStaticTyping | back to summary |
|---|---|
| public IterationType withStaticTyping() Overrides com. Doc from com. Method that can be called to get a type instance that indicates that values of the type should be handled using "static typing" for purposes of serialization (as opposed to "dynamic" aka runtime typing): meaning that no runtime information is needed for determining serializers to use. The main use case is to allow forcing of specific root value serialization type, and specifically in resolving serializers for contained types (element types for arrays, Collections and Maps).
| |
| withTypeHandler | back to summary |
|---|---|
| public IterationType withTypeHandler(Object h) Overrides com. Doc from com. Internal method that should not be used by any code outside of jackson-databind: only used internally by databind. May be removed from Jackson 3.0. This mutant factory method will construct a new instance that is identical to this instance, except that it will have specified type handler assigned.
| |
| withValueHandler | back to summary |
|---|---|
| public IterationType withValueHandler(Object h) Overrides com. Doc from com. Internal method that should not be used by any code outside of jackson-databind: only used internally by databind. May be removed from Jackson 3.0. This mutant factory method will construct a new instance that is identical to this instance, except that it will have specified value handler assigned.
| |