de.javakaffee.kryoserializers.guava.ReverseListSerializer Maven / Gradle / Ivy
package de.javakaffee.kryoserializers.guava;
import com.google.common.collect.Lists;
import com.esotericsoftware.kryo.Kryo;
import com.esotericsoftware.kryo.Serializer;
import com.esotericsoftware.kryo.io.Input;
import com.esotericsoftware.kryo.io.Output;
import com.esotericsoftware.kryo.serializers.CollectionSerializer;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
/**
* A {@link Lists.ReverseList} Serializer.
* Treat as a {@link List} by reversing before write and after read.
*/
public abstract class ReverseListSerializer extends Serializer> {
private static final CollectionSerializer serializer = new CollectionSerializer();
@SuppressWarnings("unchecked")
@Override
public void write(Kryo kryo, Output output, List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy