Top Inners Constructors Methods
tools.jackson.datatype.eclipsecollections.deser

public final Class BaseCollectionDeserializers

extends Object
Class Inheritance
Imports
java.util.Arrays, tools.jackson.core.JacksonException, .JsonParser, .JsonToken, tools.jackson.databind.DeserializationContext, tools.jackson.datatype.primitive_collections_base.deser.BaseCharCollectionDeserializer, .BaseCollectionDeserializer, org.eclipse.collections.api.*, org.eclipse.collections.api.collection.primitive.*

Nested and Inner Type Summary

Modifier and TypeClass and Description
public abstract static class
public abstract static class
public abstract static class
public abstract static class
public abstract static class
public abstract static class
public abstract static class
public abstract static class

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

BaseCollectionDeserializersback to summary
private BaseCollectionDeserializers()
tools.jackson.datatype.eclipsecollections.deser back to summary

public abstract Class BaseCollectionDeserializers.Boolean<T extends BooleanIterable, Intermediate extends MutableBooleanCollection>

extends BaseCollectionDeserializer<T extends BooleanIterable, Intermediate extends MutableBooleanCollection>
Class Inheritance
Known Direct Subclasses
tools.jackson.datatype.eclipsecollections.deser.bag.ImmutableBagDeserializer.Boolean, tools.jackson.datatype.eclipsecollections.deser.bag.MutableBagDeserializer.Boolean, tools.jackson.datatype.eclipsecollections.deser.list.ImmutableListDeserializer.Boolean, tools.jackson.datatype.eclipsecollections.deser.list.MutableListDeserializer.Boolean, tools.jackson.datatype.eclipsecollections.deser.set.ImmutableSetDeserializer.Boolean, tools.jackson.datatype.eclipsecollections.deser.set.MutableSetDeserializer.Boolean

Constructor Summary

AccessConstructor and Description
protected
Boolean(Class<? super T> cls)

Method Summary

Modifier and TypeMethod and Description
protected void
Inherited from tools.jackson.datatype.primitive_collections_base.deser.BaseCollectionDeserializer:
_deserializeContents_deserializeFromSingleValuecreateIntermediatecreateIntermediatedeserializedeserializeWithTypefinish

Constructor Detail

Booleanback to summary
protected Boolean(Class<? super T> cls)

Method Detail

addback to summary
protected void add(Intermediate intermediate, JsonParser parser, DeserializationContext ctx) throws JacksonException

Implements abstract tools.jackson.datatype.primitive_collections_base.deser.BaseCollectionDeserializer.add.

Annotations
@Override
tools.jackson.datatype.eclipsecollections.deser back to summary

public abstract Class BaseCollectionDeserializers.Byte<T extends ByteIterable, Intermediate extends MutableByteCollection>

extends BaseCollectionDeserializer<T extends ByteIterable, Intermediate extends MutableByteCollection>
Class Inheritance
Known Direct Subclasses
tools.jackson.datatype.eclipsecollections.deser.bag.ImmutableBagDeserializer.Byte, tools.jackson.datatype.eclipsecollections.deser.bag.MutableBagDeserializer.Byte, tools.jackson.datatype.eclipsecollections.deser.list.ImmutableListDeserializer.Byte, tools.jackson.datatype.eclipsecollections.deser.list.MutableListDeserializer.Byte, tools.jackson.datatype.eclipsecollections.deser.set.ImmutableSetDeserializer.Byte, tools.jackson.datatype.eclipsecollections.deser.set.MutableSetDeserializer.Byte

Constructor Summary

AccessConstructor and Description
protected
Byte(Class<? super T> cls)

Method Summary

Modifier and TypeMethod and Description
protected void
public T
deserialize(JsonParser p, DeserializationContext ctxt)

Overrides tools.jackson.datatype.primitive_collections_base.deser.BaseCollectionDeserializer.deserialize.

Method that can be called to ask implementation to deserialize JSON content into the value type this serializer handles.

Inherited from tools.jackson.datatype.primitive_collections_base.deser.BaseCollectionDeserializer:
_deserializeContents_deserializeFromSingleValuecreateIntermediatecreateIntermediatedeserializeWithTypefinish

Constructor Detail

Byteback to summary
protected Byte(Class<? super T> cls)

Method Detail

addback to summary
protected void add(Intermediate intermediate, JsonParser parser, DeserializationContext ctx) throws JacksonException

Implements abstract tools.jackson.datatype.primitive_collections_base.deser.BaseCollectionDeserializer.add.

Annotations
@Override
deserializeback to summary
public T deserialize(JsonParser p, DeserializationContext ctxt) throws JacksonException

Overrides tools.jackson.datatype.primitive_collections_base.deser.BaseCollectionDeserializer.deserialize.

Doc from tools.jackson.databind.ValueDeserializer.deserialize.

Method that can be called to ask implementation to deserialize JSON content into the value type this serializer handles. Returned instance is to be constructed by method itself.

Pre-condition for this method is that the parser points to the first event that is part of value to deserializer (and which is never JSON 'null' literal, more on this below): for simple types it may be the only value; and for structured types the Object start marker or a FIELD_NAME.

The two possible input conditions for structured types result from polymorphism via fields. In the ordinary case, Jackson calls this method when it has encountered an OBJECT_START, and the method implementation must advance to the next token to see the first field name. If the application configures polymorphism via a field, then the object looks like the following.

      {
          "@class": "class name",
          ...
      }
  
Jackson consumes the two tokens (the @class field name and its value) in order to learn the class and select the deserializer. Thus, the stream is pointing to the FIELD_NAME for the first field after the @class. Thus, if you want your method to work correctly both with and without polymorphism, you must begin your method with:
       if (p.currentToken() == JsonToken.START_OBJECT) {
         p.nextToken();
       }
  
This results in the stream pointing to the field name, so that the two conditions align.

Post-condition is that the parser will point to the last event that is part of deserialized value (or in case deserialization fails, event that was not recognized or usable, which may be the same event as the one it pointed to upon call).

Handling null values (JsonToken.VALUE_NULL)
: Note that this method is never called for the JSON null literal to avoid every deserializer from having to handle null values. Instead, the ValueDeserializer#getNullValue(DeserializationContext) method is called to produce a null value. To influence null handling, custom deserializers should override ValueDeserializer#getNullValue(DeserializationContext) and usually also ValueDeserializer#getNullAccessPattern().

Annotations
@Override
tools.jackson.datatype.eclipsecollections.deser back to summary

public abstract Class BaseCollectionDeserializers.Char<T extends CharIterable, Intermediate extends MutableCharCollection>

extends BaseCharCollectionDeserializer<T extends CharIterable, Intermediate extends MutableCharCollection>
Class Inheritance
Known Direct Subclasses
tools.jackson.datatype.eclipsecollections.deser.bag.ImmutableBagDeserializer.Char, tools.jackson.datatype.eclipsecollections.deser.bag.MutableBagDeserializer.Char, tools.jackson.datatype.eclipsecollections.deser.list.ImmutableListDeserializer.Char, tools.jackson.datatype.eclipsecollections.deser.list.MutableListDeserializer.Char, tools.jackson.datatype.eclipsecollections.deser.set.ImmutableSetDeserializer.Char, tools.jackson.datatype.eclipsecollections.deser.set.MutableSetDeserializer.Char

Field Summary

Modifier and TypeField and Description
private static final int

Constructor Summary

AccessConstructor and Description
protected
Char(Class<? super T> cls)

Method Summary

Modifier and TypeMethod and Description
protected void
protected void
addAll(Intermediate intermediate, char[] chars, int off, int len)

Implements abstract tools.jackson.datatype.primitive_collections_base.deser.BaseCharCollectionDeserializer.addAll.

protected abstract Intermediate
protected abstract T
Inherited from tools.jackson.datatype.primitive_collections_base.deser.BaseCharCollectionDeserializer:
deserializedeserializeWithType

Field Detail

BATCH_COPY_SIZEback to summary
private static final int BATCH_COPY_SIZE

Constructor Detail

Charback to summary
protected Char(Class<? super T> cls)

Method Detail

addback to summary
protected void add(Intermediate intermediate, char c)

Implements abstract tools.jackson.datatype.primitive_collections_base.deser.BaseCharCollectionDeserializer.add.

Annotations
@Override
addAllback to summary
protected void addAll(Intermediate intermediate, char[] chars, int off, int len)

Implements abstract tools.jackson.datatype.primitive_collections_base.deser.BaseCharCollectionDeserializer.addAll.

Annotations
@Override
createIntermediateback to summary
protected abstract Intermediate createIntermediate()

Implements abstract tools.jackson.datatype.primitive_collections_base.deser.BaseCharCollectionDeserializer.createIntermediate.

Annotations
@Override
finishback to summary
protected abstract T finish(Intermediate intermediate)

Implements abstract tools.jackson.datatype.primitive_collections_base.deser.BaseCharCollectionDeserializer.finish.

Annotations
@Override
tools.jackson.datatype.eclipsecollections.deser back to summary

public abstract Class BaseCollectionDeserializers.Double<T extends DoubleIterable, Intermediate extends MutableDoubleCollection>

extends BaseCollectionDeserializer<T extends DoubleIterable, Intermediate extends MutableDoubleCollection>
Class Inheritance
Known Direct Subclasses
tools.jackson.datatype.eclipsecollections.deser.bag.ImmutableBagDeserializer.Double, tools.jackson.datatype.eclipsecollections.deser.bag.MutableBagDeserializer.Double, tools.jackson.datatype.eclipsecollections.deser.list.ImmutableListDeserializer.Double, tools.jackson.datatype.eclipsecollections.deser.list.MutableListDeserializer.Double, tools.jackson.datatype.eclipsecollections.deser.set.ImmutableSetDeserializer.Double, tools.jackson.datatype.eclipsecollections.deser.set.MutableSetDeserializer.Double

Constructor Summary

AccessConstructor and Description
protected
Double(Class<? super T> cls)

Method Summary

Modifier and TypeMethod and Description
protected void
Inherited from tools.jackson.datatype.primitive_collections_base.deser.BaseCollectionDeserializer:
_deserializeContents_deserializeFromSingleValuecreateIntermediatecreateIntermediatedeserializedeserializeWithTypefinish

Constructor Detail

Doubleback to summary
protected Double(Class<? super T> cls)

Method Detail

addback to summary
protected void add(Intermediate intermediate, JsonParser parser, DeserializationContext ctx) throws JacksonException

Implements abstract tools.jackson.datatype.primitive_collections_base.deser.BaseCollectionDeserializer.add.

Annotations
@Override
tools.jackson.datatype.eclipsecollections.deser back to summary

public abstract Class BaseCollectionDeserializers.Float<T extends FloatIterable, Intermediate extends MutableFloatCollection>

extends BaseCollectionDeserializer<T extends FloatIterable, Intermediate extends MutableFloatCollection>
Class Inheritance
Known Direct Subclasses
tools.jackson.datatype.eclipsecollections.deser.bag.ImmutableBagDeserializer.Float, tools.jackson.datatype.eclipsecollections.deser.bag.MutableBagDeserializer.Float, tools.jackson.datatype.eclipsecollections.deser.list.ImmutableListDeserializer.Float, tools.jackson.datatype.eclipsecollections.deser.list.MutableListDeserializer.Float, tools.jackson.datatype.eclipsecollections.deser.set.ImmutableSetDeserializer.Float, tools.jackson.datatype.eclipsecollections.deser.set.MutableSetDeserializer.Float

Constructor Summary

AccessConstructor and Description
protected
Float(Class<? super T> cls)

Method Summary

Modifier and TypeMethod and Description
protected void
Inherited from tools.jackson.datatype.primitive_collections_base.deser.BaseCollectionDeserializer:
_deserializeContents_deserializeFromSingleValuecreateIntermediatecreateIntermediatedeserializedeserializeWithTypefinish

Constructor Detail

Floatback to summary
protected Float(Class<? super T> cls)

Method Detail

addback to summary
protected void add(Intermediate intermediate, JsonParser parser, DeserializationContext ctx) throws JacksonException

Implements abstract tools.jackson.datatype.primitive_collections_base.deser.BaseCollectionDeserializer.add.

Annotations
@Override
tools.jackson.datatype.eclipsecollections.deser back to summary

public abstract Class BaseCollectionDeserializers.Int<T extends IntIterable, Intermediate extends MutableIntCollection>

extends BaseCollectionDeserializer<T extends IntIterable, Intermediate extends MutableIntCollection>
Class Inheritance
Known Direct Subclasses
tools.jackson.datatype.eclipsecollections.deser.bag.ImmutableBagDeserializer.Int, tools.jackson.datatype.eclipsecollections.deser.bag.MutableBagDeserializer.Int, tools.jackson.datatype.eclipsecollections.deser.list.ImmutableListDeserializer.Int, tools.jackson.datatype.eclipsecollections.deser.list.MutableListDeserializer.Int, tools.jackson.datatype.eclipsecollections.deser.set.ImmutableSetDeserializer.Int, tools.jackson.datatype.eclipsecollections.deser.set.MutableSetDeserializer.Int

Constructor Summary

AccessConstructor and Description
protected
Int(Class<? super T> cls)

Method Summary

Modifier and TypeMethod and Description
protected void
Inherited from tools.jackson.datatype.primitive_collections_base.deser.BaseCollectionDeserializer:
_deserializeContents_deserializeFromSingleValuecreateIntermediatecreateIntermediatedeserializedeserializeWithTypefinish

Constructor Detail

Intback to summary
protected Int(Class<? super T> cls)

Method Detail

addback to summary
protected void add(Intermediate intermediate, JsonParser parser, DeserializationContext ctx) throws JacksonException

Implements abstract tools.jackson.datatype.primitive_collections_base.deser.BaseCollectionDeserializer.add.

Annotations
@Override
tools.jackson.datatype.eclipsecollections.deser back to summary

public abstract Class BaseCollectionDeserializers.Long<T extends LongIterable, Intermediate extends MutableLongCollection>

extends BaseCollectionDeserializer<T extends LongIterable, Intermediate extends MutableLongCollection>
Class Inheritance
Known Direct Subclasses
tools.jackson.datatype.eclipsecollections.deser.bag.ImmutableBagDeserializer.Long, tools.jackson.datatype.eclipsecollections.deser.bag.MutableBagDeserializer.Long, tools.jackson.datatype.eclipsecollections.deser.list.ImmutableListDeserializer.Long, tools.jackson.datatype.eclipsecollections.deser.list.MutableListDeserializer.Long, tools.jackson.datatype.eclipsecollections.deser.set.ImmutableSetDeserializer.Long, tools.jackson.datatype.eclipsecollections.deser.set.MutableSetDeserializer.Long

Constructor Summary

AccessConstructor and Description
protected
Long(Class<? super T> cls)

Method Summary

Modifier and TypeMethod and Description
protected void
Inherited from tools.jackson.datatype.primitive_collections_base.deser.BaseCollectionDeserializer:
_deserializeContents_deserializeFromSingleValuecreateIntermediatecreateIntermediatedeserializedeserializeWithTypefinish

Constructor Detail

Longback to summary
protected Long(Class<? super T> cls)

Method Detail

addback to summary
protected void add(Intermediate intermediate, JsonParser parser, DeserializationContext ctx) throws JacksonException

Implements abstract tools.jackson.datatype.primitive_collections_base.deser.BaseCollectionDeserializer.add.

Annotations
@Override
tools.jackson.datatype.eclipsecollections.deser back to summary

public abstract Class BaseCollectionDeserializers.Short<T extends ShortIterable, Intermediate extends MutableShortCollection>

extends BaseCollectionDeserializer<T extends ShortIterable, Intermediate extends MutableShortCollection>
Class Inheritance
Known Direct Subclasses
tools.jackson.datatype.eclipsecollections.deser.bag.ImmutableBagDeserializer.Short, tools.jackson.datatype.eclipsecollections.deser.bag.MutableBagDeserializer.Short, tools.jackson.datatype.eclipsecollections.deser.list.ImmutableListDeserializer.Short, tools.jackson.datatype.eclipsecollections.deser.list.MutableListDeserializer.Short, tools.jackson.datatype.eclipsecollections.deser.set.ImmutableSetDeserializer.Short, tools.jackson.datatype.eclipsecollections.deser.set.MutableSetDeserializer.Short

Constructor Summary

AccessConstructor and Description
protected
Short(Class<? super T> cls)

Method Summary

Modifier and TypeMethod and Description
protected void
Inherited from tools.jackson.datatype.primitive_collections_base.deser.BaseCollectionDeserializer:
_deserializeContents_deserializeFromSingleValuecreateIntermediatecreateIntermediatedeserializedeserializeWithTypefinish

Constructor Detail

Shortback to summary
protected Short(Class<? super T> cls)

Method Detail

addback to summary
protected void add(Intermediate intermediate, JsonParser parser, DeserializationContext ctx) throws JacksonException

Implements abstract tools.jackson.datatype.primitive_collections_base.deser.BaseCollectionDeserializer.add.

Annotations
@Override