Code example for HashSet

Methods: addclear

0
  // todo: Condense this into one run where we collect all bounds for all parents ... 
  private void recurse(final LogicalPageBox box, final Section section)
  { 
    if (section != null)
    { 
      this.ids.clear();
      this.ids.add(section.getObjectID());
      this.bounds = null;
      startProcessing(box);
      if (this.bounds == null)
      { 
        //logger.debug("Failed to collect bounds for report of section " + section); 
        recurse(box, section.getParentSection());
        return; 
      } 
 
      //logger.debug("Generating bounds for empty section " + section); 
      this.bounds.setRect(this.bounds.getX(), this.bounds.getY(), this.bounds.getWidth(), 0);
    } 
  }