Interface IRtMenuFilter

  • 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 interface IRtMenuFilter
    • Method Detail

      • accept

        boolean accept​(IMenuItem p_menuItem)
        Accept or reject the given menu item.
        Parameters:
        p_menuItem - The menu item currently processed.
        Returns:
        true if the given menu item is accepted, or false otherwise.
      • inverse

        default IRtMenuFilter inverse()
        Get the inverse filter of this filter, i.e. a filter that accepts if and only if the given filter rejects, and rejects if and only if the given filter accepts.
        Returns:
        The inverse filter.