Package io.github.classgraph
Interface PackageInfoList.PackageInfoFilter
- Enclosing class:
PackageInfoList
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Filter an
PackageInfoList
using a predicate mapping an PackageInfo
object to a boolean,
producing another PackageInfoList
for all items in the list for which the predicate is true.-
Method Summary
Modifier and TypeMethodDescriptionboolean
accept
(PackageInfo packageInfo) Whether or not to allow anPackageInfo
list item through the filter.
-
Method Details
-
accept
Whether or not to allow anPackageInfo
list item through the filter.- Parameters:
packageInfo
- ThePackageInfo
item to filter.- Returns:
- Whether or not to allow the item through the filter. If true, the item is copied to the output list; if false, it is excluded.
-