Code example for LinkedHashMap

Methods: values

0
public class List<T> implements Iterable<T> {
	 
	private LinkedHashMap<String, T> list = new LinkedHashMap<String, T>();
	 
	public Iterator<T> iterator() {
		return list.values().iterator();
	} 
	 
	public void put(String key, T item) {
		if (item != null && !this.list.containsKey(key)) {
			this.list.put(key, item);
		} 
	} 
	 
	public T get(String key) {
		return this.list.get(key);
	} 
	 
	public Set<String> keySet() {
		return this.list.keySet();
	}