M - builds this target message class.B - message builder subclass. Needed to return the
correct builder type when setting fields. If this were not
the case, field chaining would not work.public abstract static class ENotificationMessage.Builder<M extends ENotificationMessage,B extends ENotificationMessage.Builder<M,?>> extends EMessage.Builder<M,B>
ENotificationMessage builders.
Used by eBus when de-serializing an encoded message back
into the target message object.mTargetClass| Modifier | Constructor and Description |
|---|---|
protected |
Builder(Class<? extends EMessageObject> targetClass)
Creates a new notification message builder for the
given message class.
|
protected |
Builder(Class<? extends EMessageObject> targetClass,
String subject)
Creates a new notification message builder for the
given message class and subject.
|
subject, timestamp, timestamp, validatebuild, buildImplprotected Builder(Class<? extends EMessageObject> targetClass)
targetClass - notification message sub-class.protected Builder(Class<? extends EMessageObject> targetClass, String subject)
targetClass - notification message sub-class.subject - message subject.Copyright © 2019. All rights reserved.