public class TagFilter<T> extends java.lang.Object implements IAsyncFilter<T>
IAsyncFilter.AlwaysFilter<E>, IAsyncFilter.NeverFilter<E>
Modifier and Type | Field and Description |
---|---|
protected IExternalAccess |
component
The component.
|
protected java.util.Collection<java.lang.String> |
tags
The search tags.
|
ALWAYS, NEVER
Constructor and Description |
---|
TagFilter() |
TagFilter(IExternalAccess component,
java.util.Collection<java.lang.String> tags)
Create a new tag filter.
|
TagFilter(IExternalAccess component,
java.lang.String... tags)
Create a new tag filter.
|
Modifier and Type | Method and Description |
---|---|
IFuture<java.lang.Boolean> |
filter(T ts)
Filter if a service contains all the tags.
|
IExternalAccess |
getComponent() |
java.util.Collection<java.lang.String> |
getTags() |
void |
setComponent(IExternalAccess component)
Sets the component.
|
void |
setTags(java.util.Collection<java.lang.String> tags)
Sets the tags.
|
protected IExternalAccess component
protected java.util.Collection<java.lang.String> tags
public TagFilter()
public TagFilter(IExternalAccess component, java.lang.String... tags)
public TagFilter(IExternalAccess component, java.util.Collection<java.lang.String> tags)
public IFuture<java.lang.Boolean> filter(T ts)
filter
in interface IAsyncFilter<T>
public IExternalAccess getComponent()
public void setComponent(IExternalAccess component)
component
- The component to setpublic java.util.Collection<java.lang.String> getTags()
public void setTags(java.util.Collection<java.lang.String> tags)
tags
- The tags to set