public abstract static class ItemFilters.AttributeValue<M> extends ItemFilters.AttributeFilter<M>
PersistableItemFilter.Kind| Modifier and Type | Field and Description |
|---|---|
protected M |
value |
attributeKEY_END, KEY_FIELD, KEY_FILTER, KEY_START, KEY_TYPE, KEY_TYPE_MATCHES, KEY_VALUE, kind| Modifier | Constructor and Description |
|---|---|
private |
AttributeValue(PersistableItemFilter.Kind kind,
ICanonicalAccessorFactory<M> attribute,
M value) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract java.util.function.Predicate<IItem> |
getPredicate(IMemberAccessor<? extends M,IItem> accessor,
M value) |
java.util.function.Predicate<IItem> |
getPredicate(IType<IItem> type) |
M |
getValue() |
protected void |
saveArgs(IWritableState memento) |
java.lang.String |
toString() |
getAttribute, getKindputValueType, readFrom, readValue, readValue, saveTo, toString, writeValue, writeValueprotected final M value
private AttributeValue(PersistableItemFilter.Kind kind, ICanonicalAccessorFactory<M> attribute, M value)
public M getValue()
protected void saveArgs(IWritableState memento)
saveArgs in class ItemFilters.AttributeFilter<M>public java.util.function.Predicate<IItem> getPredicate(IType<IItem> type)
type - the item type to get a predicate forprotected abstract java.util.function.Predicate<IItem> getPredicate(IMemberAccessor<? extends M,IItem> accessor, M value)
public java.lang.String toString()
toString in class ItemFilters.AttributeFilter<M>