Interface TransactionConverter

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface TransactionConverter
    A converter of a raw Exonum transaction, which contains transaction data, into an executable transaction.
    • Method Detail

      • toTransaction

        Transaction toTransaction​(RawTransaction rawTransaction)
        Converts an Exonum raw transaction to an executable transaction of some service.
        Parameters:
        rawTransaction - a raw transaction to be converted
        Returns:
        an executable transaction of some service
        Throws:
        java.lang.IllegalArgumentException - if the raw transaction is malformed, or a transaction of an unknown service
        java.lang.NullPointerException - if the raw transaction is null