public class NotEqualsRule extends AbstractRule
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(LoggingEvent event,
java.util.Map matches)
Returns true if this implementation of the rule accepts the LoggingEvent,
or false if not.
|
static Rule |
getRule(java.util.Stack stack)
Get new instance from top two elements of stack.
|
static Rule |
getRule(java.lang.String field,
java.lang.String value)
Get new instance.
|
addPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListener
public static Rule getRule(java.lang.String field, java.lang.String value)
field
- fieldvalue
- valuepublic static Rule getRule(java.util.Stack stack)
stack
- stack.public boolean evaluate(LoggingEvent event, java.util.Map matches)
What True/False means can be client-specific.
event
- LoggingEvent this instance will evaluatematches
- a Map of event field keys to Sets of matching strings (may be null) which will be
updated during execution of this method to include field and string matches based on the rule
evaluation resultsCopyright © 2006-2019 OPS4J - Open Participation Software for Java. All Rights Reserved.