Class UUIDSerializer

java.lang.Object
tools.jackson.databind.ValueSerializer<UUID>
org.mongojack.internal.UUIDSerializer
All Implemented Interfaces:
tools.jackson.databind.jsonFormatVisitors.JsonFormatVisitable

public class UUIDSerializer extends tools.jackson.databind.ValueSerializer<UUID>
A simple serializer for Java UUIDs which prevents the regular Java data type from being converted to an inefficient string.
Since:
2.6.2
Author:
Jared Tiala
  • Nested Class Summary

    Nested classes/interfaces inherited from class tools.jackson.databind.ValueSerializer

    tools.jackson.databind.ValueSerializer.None
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    serialize(UUID uuid, tools.jackson.core.JsonGenerator jgen, tools.jackson.databind.SerializationContext provider)
     

    Methods inherited from class tools.jackson.databind.ValueSerializer

    acceptJsonFormatVisitor, createContextual, getDelegatee, handledType, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, resolve, serializeWithType, unwrappingSerializer, usesObjectId, withFilterId, withFormatOverrides, withIgnoredProperties

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • UUIDSerializer

      public UUIDSerializer()
  • Method Details

    • serialize

      public void serialize(UUID uuid, tools.jackson.core.JsonGenerator jgen, tools.jackson.databind.SerializationContext provider) throws tools.jackson.core.JacksonException
      Specified by:
      serialize in class tools.jackson.databind.ValueSerializer<UUID>
      Throws:
      tools.jackson.core.JacksonException