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 in firstChildByPredicate search provider.
  • Constructor Details

    • ComponentPredicate

      public ComponentPredicate(Predicate<IComponent<?>> predicate)
      Constructs a new component predicate.
      Parameters:
      predicate - Predicate
  • Method Details

    • 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 and false otherwise