code: public boolean isCompleted() {
      for (TapOperation op : ops) {
        if (!op.getState().equals(OperationState.COMPLETE)) {
          return false;
        }
      }
      return true;
    }
docs: Check if all operations in the TapStream are completed.
  
  @return true if all operations currently in the TapStream are completed