package de.javakaffee.kryoserializers;

import com.esotericsoftware.kryo.Kryo;
import com.esotericsoftware.kryo.Serializer;
import com.esotericsoftware.kryo.io.Input;
import com.esotericsoftware.kryo.io.Output;

import java.util.UUID;

public class UUIDSerializer extends Serializer<UUID> {

    @Override
    public void write(Kryo kryo, Output output, UUID uuid) {
        output.writeLong(uuid.getMostSignificantBits(), false);
        output.writeLong(uuid.getLeastSignificantBits(), false);
    }

    @Override public UUID read(Kryo kryo, Input input, Class<UUID> uuidClass) {
        return new UUID(input.readLong(false), input.readLong(false));
    }
}

@@ -410,31 +410,24 @@
 ficantBits()
-, false
 );%0A        o
@@ -476,15 +476,8 @@
 ts()
-, false
 );%0A 
@@ -601,21 +601,16 @@
 eadLong(
-false
 ), input
@@ -623,13 +623,8 @@
 ong(
-false
 ));%0A

remove boolean