Code example for HashSet

Methods: clear

0
   * Clear state in case of redundancy (e.g., wipe). 
   */ 
  public void clear() { 
    nonFolders.clear();
    nonFolderCount = 0;
    folders.clear();
    nonFolderParents.clear();
    folderParents.clear();
  } 
} 
Connect your IDE to all the code out there  Get Codota for Java