001package org.dllearner.algorithms.qtl.util.filters; 002 003import org.dllearner.algorithms.qtl.datastructures.impl.GenericTree; 004 005/** 006 * A filter for trees. 007 * 008 * @author Lorenz Buehmann 009 */ 010public interface TreeFilter<T extends GenericTree> { 011 012 /** 013 * Apply the filter and return a new filtered tree. 014 * @param tree the input tree 015 * @return a new filtered tree 016 */ 017 T apply(T tree); 018}