Class Call.Builder

  • Enclosing class:
    Call<T>

    public static class Call.Builder
    extends java.lang.Object
    Builder for creating immutable object of Call.
    It has following properties
    - from(Address) the request account
    - to(Address) the SCORE address to call
    - method(String) the method name to call
    - params(Object) the parameter of call
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • method

        public Call.Builder method​(java.lang.String method)
      • build

        public Call<RpcItem> build()
        Builds with RpcItem. that means the return type is RpcItem
        Returns:
        Call
      • buildWith

        public <T> Call<T> buildWith​(java.lang.Class<T> responseType)
        Builds with User defined class. an object of the class would be returned
        Type Parameters:
        T - responseType
        Parameters:
        responseType - Response type
        Returns:
        Call