Code example for LinkedHashMap

Methods: removeget

	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; 
		// TODO cancel download, delete tmp file, etc. 
		return true; 
	public boolean startDownload(String key, String url, String completeFile) {
Connect your IDE to all the code out there  Get Codota for Java