001package org.biopax.paxtools.util; 002 003 004/** 005 * Generic interface for defining filter decorators. Filters are useful for defining restrictions on 006 * properties, selecting subsets of objects or defining the behaviour of traversers. 007 */ 008public interface Filter<T> 009{ 010 /** 011 * Can e.g., analyze, modify or convert the given object (or model) to another format. 012 * 013 * @param object to be filtered 014 * @return true/false, depending on whether the object satisfied a criteria defined by this Filter; 015 * or - conversion/analysis was successful/unsuccessful. 016 */ 017 boolean filter(T object); 018}