public interface Asset<T>
asset-ID => {<age-1, data-1>, <age-2, data-2>, ..., <age-N, data-N>}
The largest age specifies the latest asset entry.
Modifier and Type | Method and Description |
---|---|
int |
age()
Returns an age of the asset.
|
T |
data()
Returns a data of the asset.
|
java.lang.String |
id()
Returns an ID of the asset.
|
AssetMetadata |
metadata()
Returns the metadata with
AssetMetadata of the asset. |
java.lang.String id()
int age()
T data()
AssetMetadata metadata()
AssetMetadata
of the asset. AssetMetadata
is
available for committed assets and null for uncommitted assets. You get uncommitted assets only
when you put a new asset and get the asset you put in a contract because the contract is not
successfully finished yet.