src/main/java/xdean/graduation/workspace/Util.java
<P, T extends Trader<P>> Single<Result<T>> indaySave(Observable<Order> ob, OutputStream output, T trader) {
    return ob
        .compose(o -> inday(o, trader))
        .compose(o -> save(o, output, Context.<P, T> getHook()::extraColumns))
        .last()
        .toSingle();
    // save(
    // inday(ob, trader),
    // output,
    // Context.<P, T> getHook()::extraColumns)
    // .last()
    // .toSingle();
  }
/**
   * In-day calculation and save the output and print the result
   * 
   * @param ob
   * @param output
   * @param trader
   * @return
   */
In-day calculation and save the output and print the result


In - day calculation and save the output and print the result
<P, T extends Trader<P>> Single<Result<T>> indaySave(Observable<Order> ob, OutputStream output, T trader) {
    return ob
        .compose(o -> inday(o, trader))
        .compose(o -> save(o, output, Context.<P, T> getHook()::extraColumns))
        .last()
        .toSingle();
  }
< P , T extends Trader < P > > Single < Result < T > > indaySave ( Observable < Order > ob , OutputStream output , T trader ) { return ob . compose ( o -> inday ( o , trader ) ) . compose ( o -> save ( o , output , Context . < P , T > getHook ( ) :: extraColumns ) ) . last ( ) . toSingle ( ) ; }
In-day calculation and save the output and print the result
In - day calculation and save the output and print the result
// save(
 // inday(ob, trader),
 // output,
 // Context.<P, T> getHook()::extraColumns)
 // .last()
 // .toSingle();
