public static final class MatchEvent.Builder extends ENotificationMessage.Builder<MatchEvent,MatchEvent.Builder>
mTargetClass| Modifier and Type | Method and Description |
|---|---|
protected MatchEvent |
buildImpl()
Returns a new
MatchEvent instance based on
this builder's configuration. |
MatchEvent.Builder |
groups(Map<String,List<ENotificationMessage>> groups)
Sets the message collection map to the given value.
|
MatchEvent.Builder |
userCache(Map<Object,Object> userCache)
Sets the user cache to the given value.
|
protected EMessageObject.Validator |
validate(EMessageObject.Validator problems)
Checks if this builder is correctly configured before
attempting to build the target message instance.
|
position, publisherIdcopy, subject, timestamp, timestampbuildprotected MatchEvent buildImpl()
MatchEvent instance based on
this builder's configuration.buildImpl in class EMessageObject.Builder<MatchEvent>MatchEvent instance.protected EMessageObject.Validator validate(EMessageObject.Validator problems)
MatchEvent requires that both the
message groups and user cache be set.validate in class EMessage.Builder<MatchEvent,MatchEvent.Builder>problems - place invalid fields into this list.problems is returned to all method
chaining.public MatchEvent.Builder groups(Map<String,List<ENotificationMessage>> groups)
groups - message collection map. May be empty but
not null.this Builder instance.NullPointerException - if groups is null.public MatchEvent.Builder userCache(Map<Object,Object> userCache)
userCache - user cache map. May not be
null but may be empty.this Builder instance.NullPointerException - if userCache is null.Copyright © 2021. All rights reserved.