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