Code example for LinkedHashMap

Methods: get, put, remove

0
		// } 
		// } 
	} 
 
	public void updateProjectsList(Project project) {
		if (projectsDictionary.get(project.getId()) != null)
			projectsDictionary.remove(project.getId());
		projectsDictionary.put(project.getId(), project);
 
	} 
 
	public Project getProjectById(int projectId) {
		return projectsDictionary.get(projectId);
 
	} 
 
	public void updateAccountsList(Account account) {
		if (accountsDictionary.get(account.getId()) != null)
			accountsDictionary.remove(account.getId());
		accountsDictionary.put(account.getId(), account);