- All Superinterfaces:
Comparable<StorageValue>,io.hotmoka.marshalling.api.Marshallable,Serializable,StorageValue
A reference to an object of class type that can be stored in the the store of a Hotmoka node.
It knows the transaction that created the object. Objects created during the
same transaction are disambiguated by a progressive number.
-
Method Summary
Modifier and TypeMethodDescriptionYields the progressive number of the object among those that have been created during the same transaction.Yields the transaction that created the object.voidintoWithoutSelector(io.hotmoka.marshalling.api.MarshallingContext context) Marshals this object into the given context, without the selector that, instead, gets added byMarshallable.into(MarshallingContext).byte[]Transforms this object into a byte array, without the selector that, instead, gets added byio.hotmoka.marshalling.api.Marshallable#toByteArray().Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface io.hotmoka.marshalling.api.Marshallable
into, size, toByteArrayMethods inherited from interface io.hotmoka.node.api.values.StorageValue
asBigInteger, asBoolean, asByte, asChar, asDouble, asFloat, asInt, asLong, asReference, asReturnedBigInteger, asReturnedBoolean, asReturnedByte, asReturnedChar, asReturnedDouble, asReturnedFloat, asReturnedInt, asReturnedLong, asReturnedReference, asReturnedShort, asReturnedString, asShort, asString, equals, hashCode, toString
-
Method Details
-
getTransaction
TransactionReference getTransaction()Yields the transaction that created the object.- Returns:
- the transaction that created the object
-
getProgressive
BigInteger getProgressive()Yields the progressive number of the object among those that have been created during the same transaction.- Returns:
- the progressive number of the object among those that have been created during the same transaction
-
toByteArrayWithoutSelector
byte[] toByteArrayWithoutSelector()Transforms this object into a byte array, without the selector that, instead, gets added byio.hotmoka.marshalling.api.Marshallable#toByteArray().- Returns:
- the byte array resulting from marshalling this object
-
intoWithoutSelector
Marshals this object into the given context, without the selector that, instead, gets added byMarshallable.into(MarshallingContext).- Parameters:
context- the context- Throws:
IOException- if the object cannot be marshalled
-