Class TransactionTreeUtils

java.lang.Object
com.daml.ledger.javaapi.data.TransactionTreeUtils

public class TransactionTreeUtils extends Object
  • 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 tree
      createWrappedEvent - 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