public static class ItemFilters.BooleanFilter extends java.lang.Object implements IItemFilter
Modifier and Type | Field and Description |
---|---|
private static IPredicate<IItem> |
ALWAYSFALSE |
private static IPredicate<IItem> |
ALWAYSTRUE |
boolean |
value |
Modifier | Constructor and Description |
---|---|
protected |
BooleanFilter(boolean value) |
Modifier and Type | Method and Description |
---|---|
IPredicate<IItem> |
getPredicate(IType<IItem> type) |
public boolean value
private static final IPredicate<IItem> ALWAYSTRUE
private static final IPredicate<IItem> ALWAYSFALSE
public IPredicate<IItem> getPredicate(IType<IItem> type)
getPredicate
in interface IItemFilter
type
- the item type to get a predicate for