Code example for TreeMap

Methods: subMap

0
	public void remove(Tile item) {
		m_tree.remove(getKey(item));
	} 
	 
	public Collection<Tile> getRange(int x1, int x2) {
		return m_tree.subMap(getKey(x1, 0), getKey(x2, 0)).values();
	} 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE