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

com.puresoltechnologies.graphs.trees.TreeSearchCriterion Maven / Gradle / Ivy

package com.puresoltechnologies.graphs.trees;

/**
 * This is a simple interface to specify a tree search criterion.
 * 
 * @author Rick-Rainer Ludwig
 * 
 * @param 
 *            is the actual tree node implementation.
 */
public interface TreeSearchCriterion> {

    /**
     * This method returns whether a node is accepted as a search result or not.
     * 
     * @param node
     *            is the current node visited.
     * @return True is returned if the current node is to be added to the search
     *         result or not. False is returned otherwise.
     */
    public boolean accepted(N node);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy