Top Inners Fields Constructors Methods
com.fasterxml.jackson.datatype.hppc.deser

public Class HppcContainerDeserializers

extends Object
Class Inheritance
Imports
java.io.IOException, java.util.*, com.fasterxml.jackson.core.*, com.fasterxml.jackson.databind.*, com.fasterxml.jackson.databind.type.LogicalType, com.carrotsearch.hppc.*

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv abstract static class
HppcContainerDeserializers.IntContainerDeserializerBase<T>

Intermediate base class used for various integral (as opposed to floating point) value container types.

pack-priv static class
pack-priv static class
pack-priv static class

Field Summary

Modifier and TypeField and Description
protected static final HashMap<Class<?>, Class<?>>
_concreteMapping

We can either register abstract type defaults via ObjectMapper, or just do it here.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static JsonDeserializer<?>
findDeserializer(DeserializationConfig config, final JavaType origType)

Method called to see if this serializer (or a serializer this serializer knows) should be used for given type; if not, null is returned.

public static boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_concreteMappingback to summary
protected static final HashMap<Class<?>, Class<?>> _concreteMapping

We can either register abstract type defaults via ObjectMapper, or just do it here. For now let's just do it locally; this will allow override of definitions by app code (by using ObjectMapper resolution)

Constructor Detail

HppcContainerDeserializersback to summary
public HppcContainerDeserializers()

Method Detail

findDeserializerback to summary
public static JsonDeserializer<?> findDeserializer(DeserializationConfig config, final JavaType origType) throws JsonMappingException

Method called to see if this serializer (or a serializer this serializer knows) should be used for given type; if not, null is returned.

hasDeserializerForback to summary
public static boolean hasDeserializerFor(DeserializationConfig config, final Class<?> rawType)
com.fasterxml.jackson.datatype.hppc.deser back to summary

pack-priv abstract Class HppcContainerDeserializers.IntContainerDeserializerBase<T>

extends ContainerDeserializerBase<T>
Class Inheritance
Known Direct Subclasses
com.fasterxml.jackson.datatype.hppc.deser.HppcContainerDeserializers.IntSetDeserializer, com.fasterxml.jackson.datatype.hppc.deser.HppcContainerDeserializers.IntIndexedContainerDeserializer, com.fasterxml.jackson.datatype.hppc.deser.HppcContainerDeserializers.IntDequeDeserializer
Annotations
@SuppressWarnings:serial

Intermediate base class used for various integral (as opposed to floating point) value container types.

Field Summary

Inherited from com.fasterxml.jackson.datatype.hppc.deser.ContainerDeserializerBase:
_defaultCtor

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected abstract void
add(T container, int value)

public void
public LogicalType
logicalType()

Overrides com.fasterxml.jackson.databind.JsonDeserializer.logicalType.

Method for accessing logical type of values this deserializer produces.

Inherited from com.fasterxml.jackson.datatype.hppc.deser.ContainerDeserializerBase:
createContainerInstancedeserializedeserializeWithTypehandleNonArrayhandleSingleAsArray

Constructor Detail

IntContainerDeserializerBaseback to summary
public IntContainerDeserializerBase(JavaType type, DeserializationConfig config)

Method Detail

addback to summary
protected abstract void add(T container, int value)
deserializeContentsback to summary
public void deserializeContents(JsonParser p, DeserializationContext ctxt, T container) throws IOException

Implements abstract com.fasterxml.jackson.datatype.hppc.deser.ContainerDeserializerBase.deserializeContents.

Annotations
@Override
logicalTypeback to summary
public LogicalType logicalType()

Overrides com.fasterxml.jackson.databind.JsonDeserializer.logicalType.

Doc from com.fasterxml.jackson.databind.JsonDeserializer.logicalType.

Method for accessing logical type of values this deserializer produces. Typically used for further configuring handling of values, for example, to find which coercions are legal.

Returns:LogicalType

Logical type of values this deserializer produces, if known; null if not

Annotations
@Override
com.fasterxml.jackson.datatype.hppc.deser back to summary

pack-priv Class HppcContainerDeserializers.IntDequeDeserializer

extends HppcContainerDeserializers.IntContainerDeserializerBase<IntDeque>
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
Inherited from com.fasterxml.jackson.datatype.hppc.deser.HppcContainerDeserializers.IntContainerDeserializerBase:
deserializeContentslogicalType

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.fasterxml.jackson.databind.deser.std.StdDeserializer.serialVersionUID.

Constructor Detail

IntDequeDeserializerback to summary
public IntDequeDeserializer(JavaType type, DeserializationConfig config)

Method Detail

addback to summary
protected void add(IntDeque container, int value)

Implements abstract com.fasterxml.jackson.datatype.hppc.deser.HppcContainerDeserializers.IntContainerDeserializerBase.add.

Annotations
@Override
com.fasterxml.jackson.datatype.hppc.deser back to summary

pack-priv Class HppcContainerDeserializers.IntIndexedContainerDeserializer

extends HppcContainerDeserializers.IntContainerDeserializerBase<IntIndexedContainer>
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
Inherited from com.fasterxml.jackson.datatype.hppc.deser.HppcContainerDeserializers.IntContainerDeserializerBase:
deserializeContentslogicalType

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.fasterxml.jackson.databind.deser.std.StdDeserializer.serialVersionUID.

Constructor Detail

IntIndexedContainerDeserializerback to summary
public IntIndexedContainerDeserializer(JavaType type, DeserializationConfig config)

Method Detail

addback to summary
protected void add(IntIndexedContainer container, int value)

Implements abstract com.fasterxml.jackson.datatype.hppc.deser.HppcContainerDeserializers.IntContainerDeserializerBase.add.

Annotations
@Override
com.fasterxml.jackson.datatype.hppc.deser back to summary

pack-priv Class HppcContainerDeserializers.IntSetDeserializer

extends HppcContainerDeserializers.IntContainerDeserializerBase<IntSet>
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
Inherited from com.fasterxml.jackson.datatype.hppc.deser.HppcContainerDeserializers.IntContainerDeserializerBase:
deserializeContentslogicalType

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.fasterxml.jackson.databind.deser.std.StdDeserializer.serialVersionUID.

Constructor Detail

IntSetDeserializerback to summary
public IntSetDeserializer(JavaType type, DeserializationConfig config)

Method Detail

addback to summary
protected void add(IntSet container, int value)

Implements abstract com.fasterxml.jackson.datatype.hppc.deser.HppcContainerDeserializers.IntContainerDeserializerBase.add.

Annotations
@Override