Class B2JsonAtomicLongArrayHandler

  • All Implemented Interfaces:
    B2JsonTypeHandler<java.util.concurrent.atomic.AtomicLongArray>

    public class B2JsonAtomicLongArrayHandler
    extends B2JsonNonUrlTypeHandler<java.util.concurrent.atomic.AtomicLongArray>
    • Constructor Detail

      • B2JsonAtomicLongArrayHandler

        public B2JsonAtomicLongArrayHandler​(B2JsonTypeHandler<java.lang.Long> itemHandler)
    • Method Detail

      • getHandledType

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

        public void serialize​(java.util.concurrent.atomic.AtomicLongArray array,
                              B2JsonOptions options,
                              B2JsonWriter out)
                       throws java.io.IOException,
                              B2JsonException
        Description copied from interface: B2JsonTypeHandler
        Serialize one object of the class to a JSON output stream. The object is guaranteed not to be null.
        Throws:
        java.io.IOException
        B2JsonException
      • deserialize

        public java.util.concurrent.atomic.AtomicLongArray 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.concurrent.atomic.AtomicLongArray 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?