cz.cuni.amis.nb.pogamut.base.logging
Class LogRecordsSource.RegexpFilter<T>
java.lang.Object
cz.cuni.amis.nb.pogamut.base.logging.LogRecordsSource.RegexpFilter<T>
- All Implemented Interfaces:
- LogRecordsSource.Filter<T>
- Enclosing class:
- LogRecordsSource<T>
public class LogRecordsSource.RegexpFilter<T>
- extends Object
- implements LogRecordsSource.Filter<T>
Filter based on regexp matching the toString() of the object
|
Method Summary |
boolean |
filter(T t)
Decide if given object (usually parameter of log record) will pass through this
filter. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LogRecordsSource.RegexpFilter
public LogRecordsSource.RegexpFilter(Pattern pattern)
filter
public boolean filter(T t)
- Description copied from interface:
LogRecordsSource.Filter
- Decide if given object (usually parameter of log record) will pass through this
filter.
- Specified by:
filter in interface LogRecordsSource.Filter<T>
- Parameters:
t - object to be filtered.
- Returns:
- true if object was accepted.
Copyright © 2015 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.