com.fasterxml.jackson.databind.ser.std

Class UUIDSerializer

    • Constructor Detail

      • UUIDSerializer

        public UUIDSerializer()
    • Method Detail

      • isEmpty

        @Deprecated
        public boolean isEmpty(UUID value)
        Deprecated. 
        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.

        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 © 2014–2015 FasterXML. All rights reserved.