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