Package org.opentcs.util
Class ClassMatcher
java.lang.Object
org.opentcs.util.ClassMatcher
- All Implemented Interfaces:
java.io.Serializable
,java.util.function.Predicate<java.lang.Object>
public class ClassMatcher
extends java.lang.Object
implements java.util.function.Predicate<java.lang.Object>, java.io.Serializable
Checks whether the input argument is assignable to any of a given set of classes.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description ClassMatcher(java.lang.Class<?>... events)
Creates a new instance. -
Method Summary
-
Constructor Details
-
ClassMatcher
public ClassMatcher(java.lang.Class<?>... events)Creates a new instance.- Parameters:
events
- The set of classes to evaluate incoming events to.
-
-
Method Details