Code example for HashSet

Methods: size, toArray

0
  { 
    if (prefix == null)
    { 
      throw new NullPointerException("Prefix must not be null");
    } 
    final HashSet<String> keys = new HashSet<String>();
    collectPropertyKeys(prefix, this, keys);
    final String[] objects = keys.toArray(new String[keys.size()]);
    Arrays.sort(objects);
    return Arrays.asList(objects).iterator();
  } 
 
  /** 
   * Collects property keys from this and all parent report configurations, 
   * which start with the given prefix. 
   * 
   * @param prefix    the prefix, that selects the property keys. 
   * @param config    the currently processed report configuration. 
   * @param collector the target list, that should receive all valid keys. 
   */ 
  private void collectPropertyKeys(final String prefix,