Interface TransactionReference

All Superinterfaces:
Comparable<TransactionReference>, io.hotmoka.marshalling.api.Marshallable, Serializable

public interface TransactionReference extends io.hotmoka.marshalling.api.Marshallable, Serializable, Comparable<TransactionReference>
A unique identifier for a transaction.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The length of the hash of a transaction reference.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object other)
     
    byte[]
    Yields the hash of the request.
    int
     
     

    Methods inherited from interface java.lang.Comparable

    compareTo

    Methods inherited from interface io.hotmoka.marshalling.api.Marshallable

    into, size, toByteArray
  • Field Details

    • REQUEST_HASH_LENGTH

      static final int REQUEST_HASH_LENGTH
      The length of the hash of a transaction reference.
      See Also:
  • Method Details

    • getHash

      byte[] getHash()
      Yields the hash of the request.
      Returns:
      the hash
    • equals

      boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      String toString()
      Overrides:
      toString in class Object