- 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
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 TypeMethodDescriptionbooleanYields the storage reference of the object whose field is modified.inthashCode()booleanisEager()Determines if the information expressed by this update is set immediately (ie, it is eager) when a storage object is deserialized from blockchain.booleansameProperty(Update other) Determines if this update is for the same property of theother, although possibly for a different object.toString()Methods inherited from interface java.lang.Comparable
compareToMethods 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
Determines if this update is for the same property of theother, 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
-
hashCode
int hashCode() -
toString
String toString()
-