com.citra.filter
Class PassFilter
java.lang.Object
com.citra.filter.Filter
com.citra.filter.PassFilter
- All Implemented Interfaces:
- Serializable
public class PassFilter
- extends Filter
This filter will allow all supplied values.
- See Also:
- Serialized Form
Constructor Summary |
PassFilter()
Constructs a PassFilter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PassFilter
public PassFilter()
- Constructs a PassFilter.
accept
public boolean accept(Object o)
- Decides whether to accept the value supplied.
- Specified by:
accept
in class Filter
- Parameters:
o
- the object we want to decide if it will be filtered or not.
- Returns:
- true if the object matched and should not be filtered out, false otherwise.
getFilterPattern
public Object getFilterPattern()
- Returns the object used as the filter pattern.
- Specified by:
getFilterPattern
in class Filter
- Returns:
- the object that is currently set as the filter pattern.
setFilterPattern
public void setFilterPattern(Object filter)
- Sets an object as the filter pattern.
Subclasses should provide an implementation that will probably first
cast
filter
to the appropriate object.
- Specified by:
setFilterPattern
in class Filter
- Parameters:
filter
- the object to set as the filter pattern