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