org.jcoderz.commons.logging
Class PeriodFilter
java.lang.Object
org.jcoderz.commons.logging.PeriodFilter
- All Implemented Interfaces:
- Filter
public class PeriodFilter
- extends Object
- implements Filter
This class implements the timestamp period filter.
The method isPassable(LogItem) returns true if
the timestamp of the given entry
falls within of a period including in this filter.
|
Method Summary |
boolean |
isPassable(LogItem entry)
Returns flag whether the filter lets the log file entry pass, i.e. the
entry matches the filter criteria. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PeriodFilter
public PeriodFilter(Period[] periods)
- Constructor.
- Parameters:
periods - The array of periods to be used as the filter criteria.
isPassable
public boolean isPassable(LogItem entry)
- Returns flag whether the filter lets the log file entry pass, i.e. the
entry matches the filter criteria.
- Specified by:
isPassable in interface Filter
- Parameters:
entry - The entry to check.
- Returns:
- true, if
entry passes the filter; false, else.
Copyright 2007 The jCoderZ Project.