public class DeprecatedLedger extends java.lang.Object implements Ledger<javax.json.JsonObject>, DeprecatedLedgerReturnable
Constructor and Description |
---|
DeprecatedLedger(Ledger ledger) |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<Asset<javax.json.JsonObject>> |
get(java.lang.String assetId)
Retrieves the latest
Asset entry (an asset entry with the largest age) from the ledger
with the specified asset ID. |
Ledger |
getDeprecatedLedger() |
void |
put(java.lang.String assetId,
javax.json.JsonObject data)
Creates/Appends an
Asset entry to the ledger. |
java.util.List<Asset<javax.json.JsonObject>> |
scan(AssetFilter filter)
Retrieves a list of
Asset entries from the ledger with the specified AssetFilter . |
public DeprecatedLedger(Ledger ledger)
public java.util.Optional<Asset<javax.json.JsonObject>> get(java.lang.String assetId)
Ledger
Asset
entry (an asset entry with the largest age) from the ledger
with the specified asset ID.public java.util.List<Asset<javax.json.JsonObject>> scan(AssetFilter filter)
Ledger
Asset
entries from the ledger with the specified AssetFilter
.public void put(java.lang.String assetId, javax.json.JsonObject data)
Ledger
Asset
entry to the ledger. The initial entry is marked as age 0 and
new entry is appended with an incremented age.@Nonnull public Ledger getDeprecatedLedger()
getDeprecatedLedger
in interface DeprecatedLedgerReturnable