Class LedgerViewFlowable.LedgerTestView<R>
- java.lang.Object
-
- com.daml.ledger.rxjava.components.LedgerViewFlowable.LedgerView<R>
-
- com.daml.ledger.rxjava.components.LedgerViewFlowable.LedgerTestView<R>
-
- Type Parameters:
R- The type of the contracts in this application.
- Enclosing class:
- LedgerViewFlowable
public static class LedgerViewFlowable.LedgerTestView<R> extends LedgerViewFlowable.LedgerView<R>
A ledger view for unit testing of bots.
-
-
Field Summary
-
Fields inherited from class com.daml.ledger.rxjava.components.LedgerViewFlowable.LedgerView
activeContractSet, commandIdToContractIds, contractIdsToCommandIds, pendingContractSet
-
-
Constructor Summary
Constructors Constructor Description LedgerTestView(org.pcollections.PMap<java.lang.String,org.pcollections.PMap<com.daml.ledger.javaapi.data.Identifier,org.pcollections.PSet<java.lang.String>>> commandIdToContractIds, org.pcollections.PMap<com.daml.ledger.javaapi.data.Identifier,org.pcollections.PMap<java.lang.String,org.pcollections.PSet<java.lang.String>>> contractIdsToCommandIds, org.pcollections.PMap<com.daml.ledger.javaapi.data.Identifier,org.pcollections.PMap<java.lang.String,R>> pendingContractSet, org.pcollections.PMap<com.daml.ledger.javaapi.data.Identifier,org.pcollections.PMap<java.lang.String,R>> activeContractSet)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LedgerViewFlowable.LedgerTestView<R>addActiveContract(com.daml.ledger.javaapi.data.Identifier templateId, java.lang.String contractId, R r)-
Methods inherited from class com.daml.ledger.rxjava.components.LedgerViewFlowable.LedgerView
create, equals, getContracts, hashCode, toString
-
-
-
-
Constructor Detail
-
LedgerTestView
public LedgerTestView(org.pcollections.PMap<java.lang.String,org.pcollections.PMap<com.daml.ledger.javaapi.data.Identifier,org.pcollections.PSet<java.lang.String>>> commandIdToContractIds, org.pcollections.PMap<com.daml.ledger.javaapi.data.Identifier,org.pcollections.PMap<java.lang.String,org.pcollections.PSet<java.lang.String>>> contractIdsToCommandIds, org.pcollections.PMap<com.daml.ledger.javaapi.data.Identifier,org.pcollections.PMap<java.lang.String,R>> pendingContractSet, org.pcollections.PMap<com.daml.ledger.javaapi.data.Identifier,org.pcollections.PMap<java.lang.String,R>> activeContractSet)
-
-
Method Detail
-
addActiveContract
public LedgerViewFlowable.LedgerTestView<R> addActiveContract(com.daml.ledger.javaapi.data.Identifier templateId, java.lang.String contractId, R r)
-
-