Package adams.flow.core.actorfilter
Class Invert
- java.lang.Object
-
- adams.flow.core.actorfilter.Invert
-
- All Implemented Interfaces:
ActorFilter
,Serializable
public class Invert extends Object implements ActorFilter
Inverts the matching sense of the base filter.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ActorFilter
m_Filter
the base filter.
-
Constructor Summary
Constructors Constructor Description Invert(ActorFilter filter)
Initializes the filter.
-
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_Filter
protected ActorFilter m_Filter
the base filter.
-
-
Constructor Detail
-
Invert
public Invert(ActorFilter filter)
Initializes the filter.- Parameters:
filter
- the base filter to use
-
-
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:
- the inverse of the base filter
-
-