Top Description Methods
com.dlsc.preferencesfx.view

public Interface TreeItemPredicate<T>

Annotations
@FunctionalInterface
Type Parameters
<T>
element type
Imports
javafx.scene.control.TreeItem, java.util.function.Predicate

This interface can be used together with FilterableTreeItem to sort the items in the list.

Method Summary

Modifier and TypeMethod and Description
public static <T> TreeItemPredicate<T>

Returns:

new TreeItemPredicate
create
(Predicate<T>
the predicate
predicate
)

Utility method to create a TreeItemPredicate from a given Predicate

public boolean

Returns:

true if the input argument matches the predicate,otherwise false
test
(TreeItem<T>
the parent tree item of the element or null if there is no parent
parent
,
T
the value to be tested
value
)

Evaluates this predicate on the given argument.

Method Detail

createback to summary
public static <T> TreeItemPredicate<T> create(Predicate<T> predicate)

Utility method to create a TreeItemPredicate from a given Predicate

Parameters
predicate:Predicate<T>

the predicate

Returns:TreeItemPredicate<T>

new TreeItemPredicate

testback to summary
public boolean test(TreeItem<T> parent, T value)

Evaluates this predicate on the given argument.

Parameters
parent:TreeItem<T>

the parent tree item of the element or null if there is no parent

value:T

the value to be tested

Returns:boolean

true if the input argument matches the predicate,otherwise false