Code example for SortedMap

Methods: get

0
	public void add(int id, T item) {
		instances.put(id, item);
	} 
	 
	public T getData(int id) {
		return instances.get(id);
	} 
	 
	public List<Integer> getMembers() {
		List<Integer> list = new LinkedList<Integer>();
		list.addAll(instances.keySet());
		return list;
	} 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE