public class EqualsFilter extends Object implements Filter, ObjectFilter
EqualsFilter is a filter for comparing two objects using the equals() method.| Constructor and Description |
|---|
EqualsFilter() |
EqualsFilter(Object compareTo) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(org.mule.runtime.api.message.Message message,
Event.Builder builder)
Checks a given message against this filter.
|
boolean |
accept(Object object) |
Object |
getPattern() |
void |
setPattern(Object pattern) |
public EqualsFilter()
public EqualsFilter(Object compareTo)
public boolean accept(org.mule.runtime.api.message.Message message,
Event.Builder builder)
FilterTODO MULE-9142 See how this API can be improved to not need the builder.
accept in interface Filtermessage - a non null message to filter.builder - an event builder in case the filter needs to make changes to the event.true if the message matches the filter TODO MULE-9341 Remove Filters that are not needed. This method
will be removed when filters are cleaned up.public boolean accept(Object object)
accept in interface ObjectFilterpublic Object getPattern()
public void setPattern(Object pattern)
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.