Class AbstractCollectionDeserializer<T>

java.lang.Object
com.fasterxml.jackson.databind.JsonDeserializer<Collection<T>>
org.sentrysoftware.metricshub.engine.connector.deserializer.custom.AbstractCollectionDeserializer<T>
Type Parameters:
T - The type of elements in the collection.
All Implemented Interfaces:
com.fasterxml.jackson.databind.deser.NullValueProvider
Direct Known Subclasses:
AbstractNonBlankNonNullInCollectionDeserializer, ConnectionTypeSetDeserializer, DeviceKindSetDeserializer

public abstract class AbstractCollectionDeserializer<T> extends com.fasterxml.jackson.databind.JsonDeserializer<Collection<T>>
An abstract deserializer for collections of a specific type. Subclasses should provide implementations for value extraction, empty collection creation, collector creation, and building a collection from another collection. This deserializer handles the deserialization of JSON arrays and string values into a collection of the specified type.
See Also:
  • JsonDeserializer
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonDeserializer

    com.fasterxml.jackson.databind.JsonDeserializer.None
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    deserialize(com.fasterxml.jackson.core.JsonParser parser, com.fasterxml.jackson.databind.DeserializationContext ctxt)
     

    Methods inherited from class com.fasterxml.jackson.databind.JsonDeserializer

    deserialize, deserializeWithType, deserializeWithType, findBackReference, getAbsentValue, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, handledType, isCachable, logicalType, replaceDelegatee, supportsUpdate, unwrappingDeserializer

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AbstractCollectionDeserializer

      public AbstractCollectionDeserializer()
  • Method Details

    • deserialize

      public Collection<T> deserialize(com.fasterxml.jackson.core.JsonParser parser, com.fasterxml.jackson.databind.DeserializationContext ctxt) throws IOException
      Specified by:
      deserialize in class com.fasterxml.jackson.databind.JsonDeserializer<Collection<T>>
      Throws:
      IOException