ArgumentFilter

public final class ArgumentFilter implements Predicate<T>

Allows to filter messages passed by a handler method by a value of the message field.

Functions

Link copied to clipboard
public static ArgumentFilter acceptingOnly(FieldPath field, Object fieldValue)
Creates a new filter which accepts only the passed value of the specified field.
Link copied to clipboard
public boolean acceptsAll()
Tells if this filter accepts all the events.
Link copied to clipboard
public static ArgumentFilter createFilter(Method method)
Creates a new filter by the passed method.
Link copied to clipboard
public boolean equals(Object o)
Link copied to clipboard
public int hashCode()
Link copied to clipboard
public int pathLength()
Obtains the depth of the filtered field.
Link copied to clipboard
public boolean test(EventMessage event)
Accepts the passed event message if this filter accepts all events, or if the field of the message matches the configured value.
Link copied to clipboard
public String toString()

Inherited functions

Link copied to clipboard
public Predicate<T> and(Predicate<? extends Object> other)
Link copied to clipboard
public static Predicate<T> isEqual<T>(Object targetRef)
Link copied to clipboard
public Predicate<T> negate()
Link copied to clipboard
public static Predicate<T> not<T>(Predicate<? extends Object> target)
Link copied to clipboard
public Predicate<T> or(Predicate<? extends Object> other)