code: public Event getEvent(int depth)
      {
          Event event = null;
  
          if (depth > 0 && size() > depth - 1) {
              event = get(depth - 1);
          }
  
          return event;
      }
docs: Returns the event at the specified position in this queue.
  
  @param depth index of event to return.
  @return the evnet at the specified position in this queue.