1 package cz.cuni.amis.utils; 2 3 /** 4 * Simple iterface for filtering objects of arbitrary types. 5 * <p><p> 6 * Usually used in some forms of for/while cycles that determines acceptability of objects they iterate over. 7 * 8 * @author Jimmy 9 * 10 * @param <T> 11 */ 12 public interface IFilter<T> { 13 14 /** 15 * Returns true if the 'object' if accepted for further computation 16 * @param object object to be examined 17 * @return acceptability of the 'object' 18 */ 19 public boolean isAccepted(T object); 20 21 }