Package de.uplanet.lucy.server.menu.rt
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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description boolean
accept(IMenuItem p_menuItem)
Accept or reject the given menu item.default IRtMenuFilter
inverse()
Get the inverse filter of this filter, i.e.
-
-
-
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, orfalse
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.
-
-