Class SerializeUtil
- java.lang.Object
-
- org.apache.hugegraph.computer.core.util.SerializeUtil
-
public final class SerializeUtil extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SerializeUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <V extends org.apache.hugegraph.computer.core.io.Readable>
java.util.List<V>fromBytes(byte[] bytes, java.util.function.Supplier<V> supplier)static voidfromBytes(byte[] bytes, org.apache.hugegraph.computer.core.io.Readable obj)static byte[]toBytes(java.util.List<? extends org.apache.hugegraph.computer.core.io.Writable> list)static byte[]toBytes(org.apache.hugegraph.computer.core.io.Writable obj)
-
-
-
Method Detail
-
toBytes
public static byte[] toBytes(org.apache.hugegraph.computer.core.io.Writable obj)
-
toBytes
public static byte[] toBytes(java.util.List<? extends org.apache.hugegraph.computer.core.io.Writable> list)
-
fromBytes
public static void fromBytes(byte[] bytes, org.apache.hugegraph.computer.core.io.Readable obj)
-
fromBytes
public static <V extends org.apache.hugegraph.computer.core.io.Readable> java.util.List<V> fromBytes(byte[] bytes, java.util.function.Supplier<V> supplier)
-
-