Class DirectedGraphSerializer
java.lang.Object
com.esotericsoftware.kryo.Serializer<space.earlygrey.simplegraphs.DirectedGraph<?>>
com.github.tommyettinger.kryo.simplegraphs.DirectedGraphSerializer
public class DirectedGraphSerializer
extends com.esotericsoftware.kryo.Serializer<space.earlygrey.simplegraphs.DirectedGraph<?>>
Kryo
Serializer for simple-graphs DirectedGraphs.
You should register the vertex type when you register this as the serializer for DirectedGraph.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionspace.earlygrey.simplegraphs.DirectedGraph<?>copy(com.esotericsoftware.kryo.Kryo kryo, space.earlygrey.simplegraphs.DirectedGraph<?> original) space.earlygrey.simplegraphs.DirectedGraph<?>read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, Class<? extends space.earlygrey.simplegraphs.DirectedGraph<?>> dataClass) voidwrite(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output, space.earlygrey.simplegraphs.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, space.earlygrey.simplegraphs.DirectedGraph<?> data) - Specified by:
writein classcom.esotericsoftware.kryo.Serializer<space.earlygrey.simplegraphs.DirectedGraph<?>>
-
read
public space.earlygrey.simplegraphs.DirectedGraph<?> read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, Class<? extends space.earlygrey.simplegraphs.DirectedGraph<?>> dataClass) - Specified by:
readin classcom.esotericsoftware.kryo.Serializer<space.earlygrey.simplegraphs.DirectedGraph<?>>
-
copy
public space.earlygrey.simplegraphs.DirectedGraph<?> copy(com.esotericsoftware.kryo.Kryo kryo, space.earlygrey.simplegraphs.DirectedGraph<?> original) - Overrides:
copyin classcom.esotericsoftware.kryo.Serializer<space.earlygrey.simplegraphs.DirectedGraph<?>>
-