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 Summary

    Modifier and Type
    Method
    Description
    boolean
    accept(IMenuItem p_menuItem)
    Accept or reject the given menu item.
    Get the inverse filter of this filter, i.e.
  • Method Details

    • 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.