Code example for HashSet

Methods: add, contains

0
      return; 
    } 
    Logger.debug(LOG_TAG, "Queuing deletion of " + guid);
 
    if (isFolder) {
      folders.add(guid);
      if (!folders.contains(parentGUID)) {
        // We're not going to delete its parent; will need to bump it. 
        folderParents.add(parentGUID);
      } 
 
      nonFolderParents.remove(guid);
      folderParents.remove(guid);
      return; 
    } 
 
    if (!folders.contains(parentGUID)) {
      // We're not going to delete its parent; will need to bump it. 
      nonFolderParents.add(parentGUID);
    }