code: public void addUpdate(final Update update) {
          if (updates == null) {
              updates = new ArrayList<Update>();
          }
          updates.add(update);
      }
docs: Add an update to this history
  
  @param update an update to add to the list of updates for this history.