Package com._1c.g5.aef2.scenes
Class ComponentSearch.ComponentPredicate
- java.lang.Object
-
- com._1c.g5.aef2.scenes.ComponentSearch.ComponentPredicate
-
- Enclosing class:
- ComponentSearch
public static final class ComponentSearch.ComponentPredicate extends Object
A component predicate that can be used infirstChildByPredicate
search provider.
-
-
Constructor Summary
Constructors Constructor Description ComponentPredicate(Predicate<IComponent<?>> predicate)
Constructs a new component predicate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
applies(IComponent<?> component)
Evaluates the predicate on a given component.
-
-
-
Constructor Detail
-
ComponentPredicate
public ComponentPredicate(Predicate<IComponent<?>> predicate)
Constructs a new component predicate.- Parameters:
predicate
- Predicate
-
-
Method Detail
-
applies
public boolean applies(IComponent<?> component)
Evaluates the predicate on a given component.- Parameters:
component
- the component to be evaluated in this predicate- Returns:
true
if the component matches the predicate andfalse
otherwise
-
-