001package org.unix4j.unix.grep;
002
003import org.unix4j.line.Line;
004
005/**
006 * Returns true if a line matches a certain matching criterion. Different
007 * implementations exist for the different grep options.
008 */
009interface LineMatcher {
010        /**
011         * Returns true if the given {@code line} matches, and false otherwise.
012         * 
013         * @param line
014         *            the line to test
015         * @return true if the line matches
016         */
017        boolean matches(Line line);
018}