Class FunctionCallResult<R>

  • Type Parameters:
    R - the result type to deserialize to

    public class FunctionCallResult<R>
    extends java.lang.Object
    A basic typed function call result
    Since:
    0.2.0
    Author:
    Alexandre Carvalho, Andre Bertolace
    • Constructor Summary

      Constructors 
      Constructor Description
      FunctionCallResult​(ContractFunctionCallResult contractFunctionCallResult, java.lang.Class<R> clazz)
      Creates an instance of FunctionCallResult with the type for deserializing the result data and the full contract response object
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FunctionCallResult

        public FunctionCallResult​(ContractFunctionCallResult contractFunctionCallResult,
                                  java.lang.Class<R> clazz)
                           throws java.io.IOException
        Creates an instance of FunctionCallResult with the type for deserializing the result data and the full contract response object
        Parameters:
        contractFunctionCallResult - the full result object from the request
        clazz - the class of type R to load the result to
        Throws:
        java.io.IOException - thrown if failed to map json to class