public class TypeFilter extends Object implements Filter
Filter
that only accepts events which have a payload of a specific
type. Events are accepted if their payload can be assigned to the desired
class (ie. also subclasses are accepted).Constructor and Description |
---|
TypeFilter(Class<?> type)
Constructor.
|
public TypeFilter(Class<?> type)
type
- the desired payload type, not null
IllegalArgumentException
- type is null
Copyright © 2018 CoR-Lab. All rights reserved.