org.jbpt.algo.tree.tctree.MetaInfoContainer Maven / Gradle / Ivy
package org.jbpt.algo.tree.tctree;
import java.util.HashMap;
/**
* This container stores additional meta information.
* The elements of {@link MetaInfo} are used as keys.
*
* @author Christian Wiggert
*
*/
public class MetaInfoContainer {
private HashMap map;
public MetaInfoContainer() {
map = new HashMap();
}
public Object getMetaInfo(MetaInfo name) {
if (map.containsKey(name))
return map.get(name);
return null;
}
public void setMetaInfo(MetaInfo name, Object content) {
map.put(name, content);
}
}