Class Hash256

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

public final class Hash256 extends ByteArray
  • Field Details

  • Constructor Details

    • Hash256

      public Hash256(byte[] bytes)
      Creates a new Hash256.
      Parameters:
      bytes - Bytes.
    • Hash256

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

    • parse

      public static Hash256 parse(Object rawValue)
      Hash256.parse
      Parses a raw value (Hash256, hex string, byte array, or SDK ByteArray) into a Hash256.
      Parameters:
      rawValue - Raw value.
      Returns:
      Parsed value.
    • deserialize

      public static Hash256 deserialize(ByteBuffer buffer)
      Hash256.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)