net.sf.mmm.util.filter.api
Interface FilterRule<V>

Type Parameters:
V - is the generic type of the value to check.
All Known Implementing Classes:
PatternFilterRule

public interface FilterRule<V>

This is the interface for a filter rule. It decides if a given string is accepted, denied or ignored by this rule.

Since:
1.0.2
Author:
Joerg Hohwiller (hohwille at users.sourceforge.net)

Method Summary
 Boolean accept(V string)
          This method checks if the given string is accepted, denied or ignored by this rule.
 

Method Detail

accept

Boolean accept(V string)
This method checks if the given string is accepted, denied or ignored by this rule.

Parameters:
string - is the string to check.
Returns:
true if the file should be accepted, false if the file should NOT be accepted or null if this rule does NOT make a decision about the given string.


Copyright © 2001-2010 mmm-Team. All Rights Reserved.