org.springframework.yarn.support
Class FixedMethodFilter

java.lang.Object
  extended by org.springframework.yarn.support.FixedMethodFilter
All Implemented Interfaces:
MethodFilter

public class FixedMethodFilter
extends Object
implements MethodFilter

A MethodFilter implementation that will always return the same Method instance within a single-element list if it is present in the candidate list. If the Method is not present in the candidate list, it will return an empty list.

Author:
Mark Fisher, Gary Russell, Janne Valkealahti

Constructor Summary
FixedMethodFilter(Method method)
           
 
Method Summary
 List<Method> filter(List<Method> methods)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixedMethodFilter

public FixedMethodFilter(Method method)
Method Detail

filter

public List<Method> filter(List<Method> methods)
Specified by:
filter in interface MethodFilter