Constructor and Description |
---|
MetadataComprisedAsset(com.scalar.dl.ledger.statemachine.InternalAsset asset,
java.util.function.Function<java.lang.String,T> deserializer) |
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. |
public MetadataComprisedAsset(com.scalar.dl.ledger.statemachine.InternalAsset asset, java.util.function.Function<java.lang.String,T> deserializer)
public java.lang.String id()
Asset
public int age()
Asset
public AssetMetadata metadata()
Asset
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.