Class 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 void fromBytes​(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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SerializeUtil

        public SerializeUtil()
    • 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)