public interface AttributeFilter
| Modifier and Type | Field and Description |
|---|---|
static DefaultAttributeFilter |
DEFAULT_INSTANCE
A shared instance of
DefaultAttributeFilter. |
| Modifier and Type | Method and Description |
|---|---|
default @Nullable Object |
getAttribute(AttributeFilterContext.GetAttributeContext ctx,
AttributeId attributeId)
Get the value for the attribute identified by
attributeId or delegate to the next filter in the chain. |
default void |
setAttribute(AttributeFilterContext.SetAttributeContext ctx,
AttributeId attributeId,
@Nullable Object value)
Set the value for the attribute identified by
attributeId or delegate to the next filter in the chain. |
static final DefaultAttributeFilter DEFAULT_INSTANCE
DefaultAttributeFilter.@Nullable default @Nullable Object getAttribute(AttributeFilterContext.GetAttributeContext ctx, AttributeId attributeId)
attributeId or delegate to the next filter in the chain.ctx - the AttributeFilterContext.attributeId - the AttributeId of the attribute to get the value of.attributeId.AttributeFilterContext.GetAttributeContext.getAttribute(AttributeId)default void setAttribute(AttributeFilterContext.SetAttributeContext ctx, AttributeId attributeId, @Nullable @Nullable Object value)
attributeId or delegate to the next filter in the chain.ctx - the AttributeFilterContext.attributeId - the AttributeId of the attribute to set the value of.value - the value to set.AttributeFilterContext.SetAttributeContext.setAttribute(AttributeId, Object)Copyright © 2021. All rights reserved.