Package adams.flow.core.actorfilter
Class Match
- java.lang.Object
-
- adams.flow.core.actorfilter.Match
-
- All Implemented Interfaces:
ActorFilter
,Serializable
public class Match extends Object implements ActorFilter
Accepts any actor that is compatible with the specified classes (subclasses or implementing interface).- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Class[]
m_Classes
the classes to check against.protected Compatibility
m_Compatibility
for performing the checks.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(Actor actor)
Returns whether the actor should be kept.
-
-
-
Field Detail
-
m_Compatibility
protected Compatibility m_Compatibility
for performing the checks.
-
m_Classes
protected Class[] m_Classes
the classes to check against.
-
-
Constructor Detail
-
Match
public Match(Class cls)
For checking against a single class only.- Parameters:
cls
- the class (superclass, interface) to check against
-
Match
public Match(Class[] classes)
For checking against a multiple classes.- Parameters:
classes
- the classes (superclasses, interfaces) to check against
-
-
Method Detail
-
accept
public boolean accept(Actor actor)
Returns whether the actor should be kept.- Specified by:
accept
in interfaceActorFilter
- Parameters:
actor
- the actor to check- Returns:
- always true
-
-