org.sadun.util
Class LineSet.ConstantFilter

java.lang.Object
  extended byorg.sadun.util.LineSet.BaseFilter
      extended byorg.sadun.util.LineSet.ConstantFilter
All Implemented Interfaces:
LineSet.Filter
Enclosing class:
LineSet

public static class LineSet.ConstantFilter
extends LineSet.BaseFilter
implements LineSet.Filter

A constant filter, which always matches or not matches

Author:
cris

Constructor Summary
LineSet.ConstantFilter(boolean toMatch, boolean toCut)
           
 
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
 
Methods inherited from class org.sadun.util.LineSet.BaseFilter
onMatch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.sadun.util.LineSet.Filter
onMatch
 

Constructor Detail

LineSet.ConstantFilter

public LineSet.ConstantFilter(boolean toMatch,
                              boolean toCut)
Method Detail

match

public boolean match(java.lang.String line,
                     int index,
                     java.util.Set info)
Description copied from interface: LineSet.Filter
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

Specified by:
match in interface LineSet.Filter
Returns:
boolean true if the given line (at the given position) is to be accepted.
See Also:
LineSet.Filter.match(java.lang.String, int, java.util.Set)