Package dev.agenor.runtime.filter
Class ContentFilter
java.lang.Object
dev.agenor.runtime.filter.ContentFilter
- All Implemented Interfaces:
MessageFilter,Predicate<Message>
Filter messages by content
-
Method Summary
Modifier and TypeMethodDescriptionstatic ContentFilterContent must satisfy predicatestatic ContentFilternotNull()Content must be non-nullstatic ContentFilterContent must be of specific typebooleanTest if the message matches this filterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.agenor.core.filter.MessageFilter
and, negate, or
-
Method Details
-
test
Description copied from interface:MessageFilterTest if the message matches this filter- Specified by:
testin interfaceMessageFilter- Specified by:
testin interfacePredicate<Message>- Parameters:
message- the message to test- Returns:
- true if the message matches the filter criteria
-
ofType
Content must be of specific type -
matching
Content must satisfy predicate -
notNull
Content must be non-null
-