Class ArrayBlockingQueueDeserializer

    • Method Detail

      • deserialize

        public java.util.Collection<java.lang.Object> deserialize​(JsonParser p,
                                                                  DeserializationContext ctxt,
                                                                  java.util.Collection<java.lang.Object> result0)
                                                           throws java.io.IOException
        Description copied from class: JsonDeserializer
        Alternate deserialization method (compared to the most commonly used, JsonDeserializer.deserialize(JsonParser, DeserializationContext)), which takes in initialized value instance, to be configured and/or populated by deserializer. Method is not necessarily used (or supported) by all types (it will not work for immutable types, for obvious reasons): most commonly it is used for Collections and Maps. It may be used both with "updating readers" (for POJOs) and when Collections and Maps use "getter as setter".

        Default implementation just throws UnsupportedOperationException, to indicate that types that do not explicitly add support do not necessarily support update-existing-value operation (esp. immutable types)

        Overrides:
        deserialize in class CollectionDeserializer
        Throws:
        java.io.IOException
      • deserializeWithType

        public java.lang.Object deserializeWithType​(JsonParser p,
                                                    DeserializationContext ctxt,
                                                    TypeDeserializer typeDeserializer)
                                             throws java.io.IOException
        Description copied from class: StdDeserializer
        Base implementation that does not assume specific type inclusion mechanism. Sub-classes are expected to override this method if they are to handle type information.
        Overrides:
        deserializeWithType in class CollectionDeserializer
        typeDeserializer - Deserializer to use for handling type information
        Throws:
        java.io.IOException