Module xaos.ui

Interface TreeItemPredicate<T>

  • Type Parameters:
    T - The type of the value property within TreeItem.
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface TreeItemPredicate<T>
    Represents a predicate (boolean-valued function) of two arguments: the first is the parent TreeItem of the element subject of the function call, and the second the value of element itself.

    This is a FunctionalInterface whose functional method is test(TreeItem, Object).

    Author:
    claudio.rosati@esss.se
    See Also:
    Filtering a JavaFX TreeView
    • Method Detail

      • test

        boolean test​(TreeItem<T> parent,
                     T value)
        Evaluates this predicate on the given arguments.
        Parameters:
        parent - The parent TreeItem of the element or null if there is no parent.
        value - The value to be tested.
        Returns:
        true if the input argument matches the predicate.