- java.lang.Object
-
- io.hotmoka.network.updates.UpdateModel
-
public class UpdateModel extends Object
The model of an update of an object.
-
-
Field Summary
Fields Modifier and Type Field Description StringclassNameThe name of the class of the object.FieldSignatureModelfieldThe field that is updated.TransactionReferenceModeljarThe transaction that installed the jar from where the class has been loaded.StorageReferenceModelobjectThe object whose field is modified.StorageValueModelvalueThe value assigned to the updated field.
-
Constructor Summary
Constructors Constructor Description UpdateModel()UpdateModel(Update update)Builds the model of an update of an object.
-
-
-
Field Detail
-
field
public FieldSignatureModel field
The field that is updated. This isnullfor class tags.
-
value
public StorageValueModel value
The value assigned to the updated field. This isnullfor class tags.
-
className
public String className
The name of the class of the object. This is non-nullfor class tags only.
-
jar
public TransactionReferenceModel jar
The transaction that installed the jar from where the class has been loaded. This is non-nullfor class tags only.
-
object
public StorageReferenceModel object
The object whose field is modified.
-
-
Constructor Detail
-
UpdateModel
public UpdateModel(Update update)
Builds the model of an update of an object.- Parameters:
update- the update
-
UpdateModel
public UpdateModel()
-
-
Method Detail
-
toBean
public Update toBean()
Yields the update having this model.- Returns:
- the update
-
-