Code example for TreeMap

Methods: containsKey, get, put

0
	 * @param classes 
	 * @return 
	 */ 
	public static TomitaAttribute getAttribute(String attrName, LinkedList<TomitaClass> classes) {
		if (attrs == null) {
			attrs = new TreeMap<String, TomitaAttribute>();
		} 
		TomitaAttribute a = null;
		if (attrs.containsKey(attrName)) {
			a = attrs.get(attrName);
		} 
		else if (classes != null) {
			a = new TomitaAttribute(classes);
			attrs.put(attrName, a);
		} 
		return a;
	} 
}