Code example for LinkedHashSet

Methods: toArrayaddAllsize

0
    return list.toArray(new String[list.size()]);
  } 
 
  private String[] computeRows(final CrosstabGroup crosstabGroup)
  { 
    final LinkedHashSet<String> list = new LinkedHashSet<String>();
    list.addAll(crosstabGroup.getPaddingFields());
    collectRelationalFields(crosstabGroup.getParentSection(), list);
    collectCrosstabFields(crosstabGroup, list);
    return list.toArray(new String[list.size()]);
  } 
 
  private void collectRelationalFields (Section section, final HashSet<String> list)
  { 
    while (section != null)
    { 
      if (section instanceof AbstractReportDefinition)
      { 
        return; 
      } 
      if (section instanceof RelationalGroup)