Interface Update

All Superinterfaces:
Comparable<Update>, io.hotmoka.marshalling.api.Marshallable
All Known Subinterfaces:
ClassTag, UpdateOfBigInteger, UpdateOfBoolean, UpdateOfByte, UpdateOfChar, UpdateOfDouble, UpdateOfField, UpdateOfFloat, UpdateOfInt, UpdateOfLong, UpdateOfShort, UpdateOfStorage, UpdateOfString, UpdateToNull

public interface Update extends io.hotmoka.marshalling.api.Marshallable, Comparable<Update>
An update states that a property of an object has been modified to a given value. Updates are stored in the store of a Hotmoka node and describe the state of storage objects.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object other)
     
    Yields the storage reference of the object whose field is modified.
    int
     
    boolean
    Determines if the information expressed by this update is set immediately (ie, it is eager) when a storage object is deserialized from blockchain.
    boolean
    Determines if this update is for the same property of the other, although possibly for a different object.
     

    Methods inherited from interface java.lang.Comparable

    compareTo

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

    into, size, toByteArray
  • Method Details

    • getObject

      StorageReference getObject()
      Yields the storage reference of the object whose field is modified.
      Returns:
      the storage reference of the object whose field is modified
    • isEager

      boolean isEager()
      Determines if the information expressed by this update is set immediately (ie, it is eager) when a storage object is deserialized from blockchain. Otherwise, the information will only be set on-demand.
      Returns:
      true if and only if the information is eager
    • sameProperty

      boolean sameProperty(Update other)
      Determines if this update is for the same property of the other, although possibly for a different object. For instance, they are both class tags or they are both updates to the same field signature.
      Parameters:
      other - the other update
      Returns:
      true if and only if that condition holds
    • 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