public static class ItemFilters.Types extends ItemFilters.Composite
PersistableItemFilter.Kind
Modifier and Type | Field and Description |
---|---|
private java.util.Set<java.lang.String> |
types |
KEY_END, KEY_FIELD, KEY_FILTER, KEY_START, KEY_TYPE, KEY_TYPE_MATCHES, KEY_VALUE, kind
Constructor and Description |
---|
Types(IItemFilter[] filters,
java.util.Set<java.lang.String> types) |
Modifier and Type | Method and Description |
---|---|
java.util.function.Predicate<IItem> |
getPredicate(IType<IItem> type) |
java.util.Set<java.lang.String> |
getTypes() |
getFilters, isUnion, saveArgs
putValueType, readFrom, readValue, readValue, saveTo, toString, toString, writeValue, writeValue
Types(IItemFilter[] filters, java.util.Set<java.lang.String> types)
public java.util.function.Predicate<IItem> getPredicate(IType<IItem> type)
getPredicate
in interface IItemFilter
getPredicate
in class ItemFilters.Composite
type
- the item type to get a predicate forpublic java.util.Set<java.lang.String> getTypes()