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

org.aksw.commons.collections.trees.TreeBase Maven / Gradle / Ivy

There is a newer version: 0.9.9
Show newest version
package org.aksw.commons.collections.trees;

/**
 * Base implementation that lazily caches the node count
 *
 * @author raven
 *
 * @param 
 */
public abstract class TreeBase
	implements Tree
{
	long nodeCount = -1;

	public long nodeCount() {
		if(nodeCount < 0) {
			nodeCount = TreeUtils.nodeCount(this);
		}

		return nodeCount;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy