Interface ModuleInfoList.ModuleInfoFilter

  • Enclosing class:
    ModuleInfoList
    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 static interface ModuleInfoList.ModuleInfoFilter
    Filter an ModuleInfoList using a predicate mapping an ModuleInfo object to a boolean, producing another ModuleInfoList for all items in the list for which the predicate is true.
    • Method Detail

      • accept

        boolean accept​(ModuleInfo moduleInfo)
        Whether or not to allow an ModuleInfo list item through the filter.
        Parameters:
        moduleInfo - The ModuleInfo 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.