Interface ClassInfoList.ClassInfoFilter

  • Enclosing class:
    ClassInfoList
    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 ClassInfoList.ClassInfoFilter
    Filter a ClassInfoList using a predicate mapping a ClassInfo object to a boolean, producing another ClassInfoList for all items in the list for which the predicate is true.
    • Method Detail

      • accept

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