org.sadun.util
Interface LineSet.Filter

All Known Implementing Classes:
LineSet.BaseFilter, LineSet.ConstantFilter, LineSet.ContainsStringFilter
Enclosing interface:
LineSet

public static interface LineSet.Filter

A Filter for matching certain lines in the set.

Author:
cris

Method Summary
 boolean match(java.lang.String line, int index, java.util.Set info)
          Must return true if the given line (at the given position) is to be accepted
 void onMatch(java.util.Set info)
           
 

Method Detail

match

public boolean match(java.lang.String line,
                     int index,
                     java.util.Set info)
Must return true if the given line (at the given position) is to be accepted. * @param line the line to be checked * @param index the position of the line, from the top of the list

Returns:
boolean true if the given line (at the given position) is to be accepted.

onMatch

public void onMatch(java.util.Set info)