com.fasterxml.jackson.databind.ser.std

Class UUIDSerializer

    • Constructor Detail

      • UUIDSerializer

        public UUIDSerializer()
    • Method Detail

      • isEmpty

        public boolean isEmpty(SerializerProvider prov,
                      UUID value)
        Description copied from class: JsonSerializer
        Method called to check whether given serializable value is considered "empty" value (for purposes of suppressing serialization of empty values).

        Default implementation will consider only null values to be empty.

        NOTE: replaces JsonSerializer.isEmpty(Object), which was deprecated in 2.5

        Overrides:
        isEmpty in class JsonSerializer<UUID>
      • serialize

        public void serialize(UUID value,
                     JsonGenerator gen,
                     SerializerProvider provider)
                       throws IOException
        Description copied from class: JsonSerializer
        Method that can be called to ask implementation to serialize values of type this serializer handles.
        Specified by:
        serialize in class StdSerializer<UUID>
        Parameters:
        value - Value to serialize; can not be null.
        gen - Generator used to output resulting Json content
        provider - Provider that can be used to get serializers for serializing Objects value contains, if any.
        Throws:
        IOException

Copyright © 2008–2016 FasterXML. All rights reserved.