Interface ChangeBlockEvent.All

    • Method Detail

      • transactions

        default java.util.stream.Stream<BlockTransaction> transactions​(Operation operation)
        Gets a Stream of BlockTransactions filtered by a particular block operation. The difference between this and transactions() is that while the general transactions is still an ordered List, this is a filtered stream of that list, equally unmodifiable. The transactions themselves are still modifiable with BlockTransaction#setCustom(BlockSnapshot), but altering the customized snapshot will NOT alter the Operation being performed. As a logical perspective, there is no functional difference between any two operations, but it can be important to differentiate between the two in some contexts.
        Parameters:
        operation - The operation being performed
        Returns:
        The stream filtering on the given operation, may be empty
      • invalidateAll

        default void invalidateAll()
        Invalidates the list as such that all Transactions are marked as "invalid" and will not apply post event.