Code example for HashSet

Methods: clear

0
 
    /** 
     * 清空历史记录 
     */ 
    public void clearHistory() { 
        mHistorySet.clear();
    } 
 
    public boolean isHistoryContains(String url) {
        return mHistorySet.contains(url);
    } 
 
}