Code example for LinkedHashMap

Methods: removeget

0
	public DownloadEntry getEntry(String key) {
		return db.get(key);
	} 
	 
	public boolean removeEntry(String key) {
		DownloadEntry entry = db.get(key);
		if (entry == null) {
			return false; 
		} 
		 
		if (entry.state == State.downloading) {
			return false; 
		} 
		 
		db.remove(key);
		// TODO cancel download, delete tmp file, etc. 
		return true; 
	} 
	 
	public boolean startDownload(String key, String url, String completeFile) {
Stop searching for code, let great code find you!  Add Codota to your java IDE