@Deprecated
public interface Ledger
Assets.| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<Asset> |
get(java.lang.String assetId)
Deprecated.
Retrieves the latest
Asset entry (an asset entry with the largest age) from the ledger
with the specified asset ID. |
void |
put(java.lang.String assetId,
javax.json.JsonObject data)
Deprecated.
Creates/Appends an
Asset entry to the ledger. |
java.util.List<Asset> |
scan(AssetFilter filter)
Deprecated.
Retrieves a list of
Asset entries from the ledger with the specified AssetFilter. |
java.util.Optional<Asset> get(java.lang.String assetId)
Asset entry (an asset entry with the largest age) from the ledger
with the specified asset ID.assetId - an asset IDOptional with the returned assetjava.util.List<Asset> scan(AssetFilter filter)
Asset entries from the ledger with the specified AssetFilter.filter - a condition to filter assetvoid put(java.lang.String assetId,
javax.json.JsonObject data)
Asset entry to the ledger. The initial entry is marked as age 0 and
new entry is appended with an incremented age.assetId - an asset ID to create/appenddata - json-formatted asset data