Package com.daml.ledger.javaapi.data
Class TransactionTreeUtils
java.lang.Object
com.daml.ledger.javaapi.data.TransactionTreeUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic <WrappedEvent>
List<WrappedEvent>buildTree
(TransactionTree transactionTree, BiFunction<TreeEvent, List<WrappedEvent>, WrappedEvent> createWrappedEvent) Constructs a tree described by a transaction tree.
-
Method Details
-
buildTree
public static <WrappedEvent> List<WrappedEvent> buildTree(TransactionTree transactionTree, BiFunction<TreeEvent, List<WrappedEvent>, WrappedEvent> createWrappedEvent) Constructs a tree described by a transaction tree.- Type Parameters:
WrappedEvent
- the type of the wrapped events of the constructed tree- Parameters:
transactionTree
- the transaction treecreateWrappedEvent
- the function that constructs a WrappedEvent node of the tree given the current node and its converted children as a list of WrappedEvents nodes- Returns:
- the list of the wrapped root events. Method will be removed in 3.4.0
-