Top Description Fields Constructors Methods
com.fasterxml.jackson.databind.type

public final Enum LogicalType

extends Enum<LogicalType>
Class Inheritance

Set of logical types (or type categories, classes of classes), used for defining applicability of configuration like coercion configuration. Used instead to allow easier targeting of types than having to enumerate physical types (java.lang.Class or com.fasterxml.jackson.databind.JavaType).
Since
2.12

Field Summary

Modifier and TypeField and Description
public static final LogicalType
Array

Array types of other values.

public static final LogicalType
Binary

Binary data such as byte[] and java.nio.ByteBuffer.

public static final LogicalType
public static final LogicalType
Collection

java.util.Collection values (and "Collection-like" for JVM languages and datatype libraries with semantically similar types)

public static final LogicalType
DateTime

Date/time datatypes such as java.util.Date, java.util.Calendar.

public static final LogicalType
Enum

Various java.lang.Enum types.

public static final LogicalType
Float

Basic floating-point numbers types like float, double, and matching wrapper types, java.math.BigDecimal.

public static final LogicalType
Integer

Basic integral numbers types like short, int, long and matching wrapper types, java.math.BigInteger.

public static final LogicalType
Map

java.util.Map values (and "Map-like" for JVM languages and datatype libraries with semantically similar types)

public static final LogicalType
OtherScalar

Scalar types other than ones listed above: includes types like java.net.URL and java.util.UUID.

public static final LogicalType
POJO

Types that are handled by default "set of key/value pairs" serialization, also known as "Beans".

public static final LogicalType
Textual

Purely textual types, java.lang.String and similar (but not types that are generally expressed as Strings in input).

public static final LogicalType
Untyped

"Non-type", Type used to contained untyped, free-form content: maybe a "Tree" (sometimes called "AST"), or buffer of some kind, or even just nominal type of java.lang.Object

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static LogicalType
fromClass(Class<?>
Type-erased class to classify
raw
,
LogicalType
if no type recognized, value to return (for example, null)
defaultIfNotRecognized
)

Helper method to use for figuring out logical type from physical type, in cases where caller wants a guess.

public static LogicalType
public static LogicalType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

Arrayback to summary
public static final LogicalType Array

Array types of other values.

Note

excludes binary type byte[].

Binaryback to summary
public static final LogicalType Binary

Binary data such as byte[] and java.nio.ByteBuffer.

Booleanback to summary
public static final LogicalType Boolean

java.lang.Boolean, boolean, java.util.concurrent.atomic.AtomicBoolean.

Collectionback to summary
public static final LogicalType Collection

java.util.Collection values (and "Collection-like" for JVM languages and datatype libraries with semantically similar types)

DateTimeback to summary
public static final LogicalType DateTime

Date/time datatypes such as java.util.Date, java.util.Calendar.

Enumback to summary
public static final LogicalType Enum

Various java.lang.Enum types.

Floatback to summary
public static final LogicalType Float

Basic floating-point numbers types like float, double, and matching wrapper types, java.math.BigDecimal.

Integerback to summary
public static final LogicalType Integer

Basic integral numbers types like short, int, long and matching wrapper types, java.math.BigInteger.

Mapback to summary
public static final LogicalType Map

java.util.Map values (and "Map-like" for JVM languages and datatype libraries with semantically similar types)

OtherScalarback to summary
public static final LogicalType OtherScalar

Scalar types other than ones listed above: includes types like java.net.URL and java.util.UUID.

POJOback to summary
public static final LogicalType POJO

Types that are handled by default "set of key/value pairs" serialization, also known as "Beans".

In addition to user-defined types, also includes JDK types like:

Textualback to summary
public static final LogicalType Textual

Purely textual types, java.lang.String and similar (but not types that are generally expressed as Strings in input).

Untypedback to summary
public static final LogicalType Untyped

"Non-type", Type used to contained untyped, free-form content: maybe a "Tree" (sometimes called "AST"), or buffer of some kind, or even just nominal type of java.lang.Object

Constructor Detail

LogicalTypeback to summary
private LogicalType()

Method Detail

fromClassback to summary
public static LogicalType fromClass(Class<?> raw, LogicalType defaultIfNotRecognized)

Helper method to use for figuring out logical type from physical type, in cases where caller wants a guess. Note that introspection is not exhaustive and mostly covers basic java.util.Collection, java.util.Map and java.lang.Enum cases; but not more specific types (for example datatype-provided extension types).

Parameters
raw:Class<?>

Type-erased class to classify

defaultIfNotRecognized:LogicalType

if no type recognized, value to return (for example, null)

valueOfback to summary
public static LogicalType valueOf(String name)
valuesback to summary
public static LogicalType[] values()