001 package videoautomat;
002 import log.LogEntry;
003 import log.LogEntryFilter;
004 /**
005 * This class implements a <code>LogEntryFilter</code> to filter out {@link LogEntryVideo}
006 */
007 public class LogEntryFilterImpl implements LogEntryFilter {
008
009 /**
010 * @return true if the given entry is of type {@link LogEntryVideo}, otherwise false.
011 *
012 * @param le
013 * the <code>LogEntry</code> to be checked
014 * @see log.LogEntryFilter#accept(log.LogEntry)
015 */
016 public boolean accept(LogEntry le) {
017 if (le instanceof LogEntryVideo)
018 return true;
019 return false;
020 }
021 }