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
Keep only elements that conform to the predicate
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPredicateTreeFilter
(Predicate<T> predicate) Create a instance ofPredicateTreeFilter
with given predicate -
Method Summary
Methods inherited from class com._1c.g5.v8.dt.navigator.filters.TreeItemFilter
dispose, isRecursive
-
Constructor Details
-
PredicateTreeFilter
Create a instance ofPredicateTreeFilter
with given predicate- Parameters:
predicate
- the filtering predicate function, cannot benull
-
-
Method Details
-
keep
- Specified by:
keep
in classTreeItemFilter
- Returns:
true
to keep anelement
,false
to filter it out.
-