Class ResponseParserWithTransformation<I,R>

java.lang.Object
cloud.quasarch.akash.impl.parsing.ResponseParserWithTransformation<I,R>
Type Parameters:
I - the intermediary representation type, which is the representation of the json
R - the final result object, after applying transformation.
All Implemented Interfaces:
ResponseParser<R>

public class ResponseParserWithTransformation<I,R> extends Object implements ResponseParser<R>
TODO Document! TODO NO_OP transformation
  • Constructor Details

    • ResponseParserWithTransformation

      public ResponseParserWithTransformation(Class<I> jsonModelClass, Function<I,R> transformation)
      constructor
      Parameters:
      jsonModelClass - response type, class
      transformation - transformation function, from http response type
  • Method Details