Package org.mongojack.internal
Class UUIDSerializer
- java.lang.Object
-
- com.fasterxml.jackson.databind.JsonSerializer<UUID>
-
- org.mongojack.internal.UUIDSerializer
-
- All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable
public class UUIDSerializer extends com.fasterxml.jackson.databind.JsonSerializer<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
-
-
Constructor Summary
Constructors Constructor Description UUIDSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
serialize(UUID uuid, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider)
-
-
-
Method Detail
-
serialize
public void serialize(UUID uuid, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider) throws IOException
- Specified by:
serialize
in classcom.fasterxml.jackson.databind.JsonSerializer<UUID>
- Throws:
IOException
-
-