Class B2JsonEnumSetHandler

    • Constructor Detail

      • B2JsonEnumSetHandler

        public B2JsonEnumSetHandler​(B2JsonTypeHandler itemHandler)
    • Method Detail

      • getHandledType

        public java.lang.reflect.Type getHandledType()
        Description copied from interface: B2JsonTypeHandler
        What class does this handle?
        Returns:
      • deserialize

        public java.util.EnumSet deserialize​(B2JsonReader in,
                                             B2JsonOptions options)
                                      throws B2JsonException,
                                             java.io.IOException
        Description copied from interface: B2JsonTypeHandler
        Deserialize one object from a JSON input stream. Will never be called when there is "null" in the input stream, and will never return null.
        Throws:
        B2JsonException
        java.io.IOException
      • defaultValueForOptional

        public java.util.EnumSet defaultValueForOptional()
        Description copied from interface: B2JsonTypeHandler
        Returns the default value to use when an optional field is not present.
      • isStringInJson

        public boolean isStringInJson()
        Description copied from interface: B2JsonTypeHandler
        Does this type look like a string in JSON?