Class UpdateModel

java.lang.Object
io.hotmoka.network.updates.UpdateModel

public class UpdateModel extends Object
The model of an update of an object.
  • Field Details

    • field

      public FieldSignatureModel field
      The field that is updated. This is null for class tags.
    • value

      public StorageValueModel value
      The value assigned to the updated field. This is null for class tags.
    • className

      public String className
      The name of the class of the object. This is non-null for class tags only.
    • jar

      The transaction that installed the jar from where the class has been loaded. This is non-null for class tags only.
    • object

      public StorageReferenceModel object
      The object whose field is modified.
  • Constructor Details

    • UpdateModel

      public UpdateModel(Update update)
      Builds the model of an update of an object.
      Parameters:
      update - the update
    • UpdateModel

      public UpdateModel()
  • Method Details

    • toBean

      public Update toBean()
      Yields the update having this model.
      Returns:
      the update