cz.cuni.amis.nb.pogamut.base.logging
Class LogRecordsSource.RegexpFilter<T>

Package class diagram package LogRecordsSource.RegexpFilter
java.lang.Object
  extended by 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


Constructor Summary
LogRecordsSource.RegexpFilter(Pattern pattern)
           
 
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
 

Constructor Detail

LogRecordsSource.RegexpFilter

public LogRecordsSource.RegexpFilter(Pattern pattern)
Method Detail

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 © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.