org.aksw.commons.collections.trees.TreeBase Maven / Gradle / Ivy
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