Class Hash512Dto

  • All Implemented Interfaces:
    Serializer

    public final class Hash512Dto
    extends java.lang.Object
    implements Serializer
    Hash512.
    • Constructor Summary

      Constructors 
      Constructor Description
      Hash512Dto​(java.io.DataInputStream stream)
      Constructor - Creates an object from stream.
      Hash512Dto​(java.nio.ByteBuffer hash512)
      Constructor.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.nio.ByteBuffer getHash512()
      Gets Hash512.
      int getSize()
      Gets the size of the object.
      static Hash512Dto loadFromBinary​(java.io.DataInputStream stream)
      Creates an instance of Hash512Dto from a stream.
      byte[] serialize()
      Serializes an object to bytes.
      • Methods inherited from class java.lang.Object

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

      • Hash512Dto

        public Hash512Dto​(java.nio.ByteBuffer hash512)
        Constructor.
        Parameters:
        hash512 - Hash512.
      • Hash512Dto

        public Hash512Dto​(java.io.DataInputStream stream)
        Constructor - Creates an object from stream.
        Parameters:
        stream - Byte stream to use to serialize.
    • Method Detail

      • getHash512

        public java.nio.ByteBuffer getHash512()
        Gets Hash512.
        Returns:
        Hash512.
      • getSize

        public int getSize()
        Gets the size of the object.
        Specified by:
        getSize in interface Serializer
        Returns:
        Size in bytes.
      • loadFromBinary

        public static Hash512Dto loadFromBinary​(java.io.DataInputStream stream)
        Creates an instance of Hash512Dto from a stream.
        Parameters:
        stream - Byte stream to use to serialize the object.
        Returns:
        Instance of Hash512Dto.
      • serialize

        public byte[] serialize()
        Serializes an object to bytes.
        Specified by:
        serialize in interface Serializer
        Returns:
        Serialized bytes.