All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jbpt.algo.tree.tctree.NodeMap Maven / Gradle / Ivy

package org.jbpt.algo.tree.tctree;

import java.util.HashMap;

import org.jbpt.hypergraph.abs.IVertex;


/**
 * This map is a convenient solution to store values for edges.
 * 
 * @author Christian Wiggert
 *
 */
public class NodeMap extends HashMap {

	/**
	 * 
	 */
	private static final long serialVersionUID = -474286340181229387L;
	
	public int getInt(V node) {
		return (Integer) this.get(node);
	}
	
	public void setInt(V node, int i) {
		this.put(node, i);
	}
	
	public boolean getBool(V node) {
		return (Boolean) this.get(node);
	}
	
	public void setBool(V node, boolean flag) {
		this.put(node, flag);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy