Package net.sf.basedb.util
Class ContextUtil.IsInContextFilter
- java.lang.Object
-
- net.sf.basedb.util.ContextUtil.IsInContextFilter
-
- All Implemented Interfaces:
Filter<ContextUtil.ContextResult>
- Enclosing class:
- ContextUtil
public static class ContextUtil.IsInContextFilter extends Object implements Filter<ContextUtil.ContextResult>
Filter implementation that works on collections ofContextUtil.ContextResult
:s and return only those that return true fromContextUtil.ContextResult.isInContext()
.- Version:
- 2.9
- Author:
- Nicklas
- Last modified
- $Date: 2013-12-06 11:52:11 +0100 (fr, 06 dec 2013) $
-
-
Constructor Summary
Constructors Constructor Description IsInContextFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
evaluate(ContextUtil.ContextResult result)
Evaluate if the given object should pass the filter or not.
-
-
-
Method Detail
-
evaluate
public boolean evaluate(ContextUtil.ContextResult result)
Description copied from interface:Filter
Evaluate if the given object should pass the filter or not.- Specified by:
evaluate
in interfaceFilter<ContextUtil.ContextResult>
- Parameters:
result
- The object to evaluate- Returns:
- TRUE if the object passes the filter, FALSE otherwise
-
-