Package org.eclipse.cdt.core.parser.util
Class InstanceOfPredicate<T>
- java.lang.Object
-
- org.eclipse.cdt.core.parser.util.InstanceOfPredicate<T>
-
- All Implemented Interfaces:
IUnaryPredicate<T>
public class InstanceOfPredicate<T> extends Object implements IUnaryPredicate<T>
Unary predicate returningtrue
if the object is an instance of the given class or interface.- Since:
- 5.7
-
-
Constructor Summary
Constructors Constructor Description InstanceOfPredicate(Class<?> type)
-
-
-
Constructor Detail
-
InstanceOfPredicate
public InstanceOfPredicate(Class<?> type)
-
-
Method Detail
-
apply
public boolean apply(T obj)
- Specified by:
apply
in interfaceIUnaryPredicate<T>
-
-