Class PredicateTreeFilter<T>
- java.lang.Object
-
- com._1c.g5.v8.dt.navigator.filters.TreeItemFilter
-
- com._1c.g5.v8.dt.navigator.filters.PredicateTreeFilter<T>
-
- Type Parameters:
M
- the type of the input to the predicate
public class PredicateTreeFilter<T> extends TreeItemFilter
Keep only elements that conform to the predicate- See Also:
TreeItemFilter
-
-
Constructor Summary
Constructors Constructor Description PredicateTreeFilter(Predicate<T> predicate)
Create a instance ofPredicateTreeFilter
with given predicate
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
keep(Object element)
-
Methods inherited from class com._1c.g5.v8.dt.navigator.filters.TreeItemFilter
dispose, isRecursive
-
-
-
-
Constructor Detail
-
PredicateTreeFilter
public PredicateTreeFilter(Predicate<T> predicate)
Create a instance ofPredicateTreeFilter
with given predicate- Parameters:
predicate
- the filtering predicate function, cannot benull
-
-
Method Detail
-
keep
public boolean keep(Object element)
- Specified by:
keep
in classTreeItemFilter
- Returns:
true
to keep anelement
,false
to filter it out.
-
-