Class Hash512

java.lang.Object
org.symbol.sdk.ByteArray
org.symbol.sdk.symbol.models.Hash512
All Implemented Interfaces:

Serializer


public final class Hash512 extends ByteArray
  • Field Details

  • Constructor Details

    • Hash512

      public Hash512(byte[] bytes)
      Creates a new Hash512.
      Parameters:

      bytes - Bytes.

    • Hash512

      public Hash512()
      Creates a new Hash512.
  • Method Details

    • parse

      public static Hash512 parse(Object rawValue)
      Hash512.parse

      Parses a raw value (Hash512, hex string, byte array, or SDK ByteArray) into a Hash512.

      Parameters:

      rawValue - Raw value.

      Returns:

      Parsed value.

    • deserialize

      public static Hash512 deserialize(ByteBuffer buffer)
      Hash512.deserialize

      Deserializes an instance of this object from a byte payload.

      Parameters:

      buffer - Output writer.

      Returns:

      Deserialized object.

      Throws:

      IndexOutOfBoundsException - if the buffer is truncated or a declared length overruns it

      IllegalArgumentException - if a field carries an invalid value (e.g. a reserved field or unknown discriminator)