public static Stream<Transaction> streamSelfAndAllTransactions(final Transaction transaction){
  final List<Transaction> allTransactions=new ArrayList<>();
  allTransactions.add(transaction);
  addTransactionsRecursive(allTransactions,transaction.getChildTransactions());
  return allTransactions.stream();
}

public static Stream < Transaction > streamSelfAndAllTransactions ( final Transaction transaction ) { final List < Transaction > allTransactions = new ArrayList < > ( ) ; allTransactions . add ( transaction ) ; addTransactionsRecursive ( allTransactions , transaction . getChildTransactions ( ) ) ; return allTransactions . stream ( ) ; }
streams the transaction , first level child transactions , and nth level child transactions . < br > this function is not needed currently .
