Class DelegatingDeserializer<T,​U>

    • Constructor Detail

      • DelegatingDeserializer

        public DelegatingDeserializer()
    • Method Detail

      • nativeEvents

        public java.util.EnumSet<jakarta.json.stream.JsonParser.Event> nativeEvents()
        Description copied from interface: JsonpDeserializer
        The native JSON events this deserializer accepts as a starting point. For example, native events for a boolean are JsonParser.Event.VALUE_TRUE and JsonParser.Event.VALUE_FALSE.
        Specified by:
        nativeEvents in interface JsonpDeserializer<T>
      • acceptedEvents

        public java.util.EnumSet<jakarta.json.stream.JsonParser.Event> acceptedEvents()
        Description copied from interface: JsonpDeserializer
        The JSON events this deserializer accepts as a starting point. For example, events for a boolean are JsonParser.Event.VALUE_TRUE, JsonParser.Event.VALUE_FALSE and JsonParser.Event.VALUE_STRING, the latter being converted to a boolean using Boolean.parseBoolean(String).
        Specified by:
        acceptedEvents in interface JsonpDeserializer<T>
      • unwrap

        public static JsonpDeserializer<?> unwrap​(JsonpDeserializer<?> deserializer)
        Unwraps a deserializer. The object type of the result may be different from that of deserializer and unwrapping can happen several times, until the result is no more a DelegatingDeserializer.