Class DirectedGraphSerializer
java.lang.Object
com.esotericsoftware.kryo.Serializer<com.github.tommyettinger.gand.DirectedGraph<?>>
com.github.tommyettinger.kryo.gand.DirectedGraphSerializer
public class DirectedGraphSerializer
extends com.esotericsoftware.kryo.Serializer<com.github.tommyettinger.gand.DirectedGraph<?>>
Kryo
Serializer for gand DirectedGraphs.
You should register the vertex type when you register this as the serializer for DirectedGraph.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.github.tommyettinger.gand.DirectedGraph<?> copy(com.esotericsoftware.kryo.Kryo kryo, com.github.tommyettinger.gand.DirectedGraph<?> original) com.github.tommyettinger.gand.DirectedGraph<?> read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, Class<? extends com.github.tommyettinger.gand.DirectedGraph<?>> dataClass) voidwrite(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output, com.github.tommyettinger.gand.DirectedGraph<?> data) Methods inherited from class com.esotericsoftware.kryo.Serializer
getAcceptsNull, isImmutable, setAcceptsNull, setImmutable
-
Constructor Details
-
DirectedGraphSerializer
public DirectedGraphSerializer()
-
-
Method Details
-
write
public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output, com.github.tommyettinger.gand.DirectedGraph<?> data) - Specified by:
writein classcom.esotericsoftware.kryo.Serializer<com.github.tommyettinger.gand.DirectedGraph<?>>
-
read
public com.github.tommyettinger.gand.DirectedGraph<?> read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, Class<? extends com.github.tommyettinger.gand.DirectedGraph<?>> dataClass) - Specified by:
readin classcom.esotericsoftware.kryo.Serializer<com.github.tommyettinger.gand.DirectedGraph<?>>
-
copy
public com.github.tommyettinger.gand.DirectedGraph<?> copy(com.esotericsoftware.kryo.Kryo kryo, com.github.tommyettinger.gand.DirectedGraph<?> original) - Overrides:
copyin classcom.esotericsoftware.kryo.Serializer<com.github.tommyettinger.gand.DirectedGraph<?>>
-