code: public EventRecord[] monitor() {
  
      ArrayList<EventRecord> recs = new ArrayList<EventRecord>();
      EventRecord er;
  
      while ((er = getNext()) != null)
        recs.add(er);
  
      EventRecord[] T = new EventRecord[recs.size()];
  
      return recs.toArray(T);
    }
docs: Get an array of all EventRecords that can be extracted for
  the represented hardware component.
  
  @return The array of EventRecords