java.lang.Object
org.refcodes.observer.EventMetaData.Builder
- All Implemented Interfaces:
org.refcodes.mixin.AliasAccessor.AliasBuilder<EventMetaData.Builder>
,org.refcodes.mixin.ChannelAccessor.ChannelBuilder<EventMetaData.Builder>
,org.refcodes.mixin.GroupAccessor.GroupBuilder<EventMetaData.Builder>
,org.refcodes.mixin.MetaDataAccessor.MetaDataBuilder<EventMetaData,
,EventMetaData.Builder> org.refcodes.mixin.UniversalIdAccessor.UniversalIdBuilder<EventMetaData.Builder>
,PublisherTypeAccessor.PublisherTypeBuilder<EventMetaData.Builder>
- Enclosing class:
- EventMetaData
public static final class EventMetaData.Builder
extends Object
implements org.refcodes.mixin.AliasAccessor.AliasBuilder<EventMetaData.Builder>, org.refcodes.mixin.ChannelAccessor.ChannelBuilder<EventMetaData.Builder>, org.refcodes.mixin.GroupAccessor.GroupBuilder<EventMetaData.Builder>, org.refcodes.mixin.UniversalIdAccessor.UniversalIdBuilder<EventMetaData.Builder>, PublisherTypeAccessor.PublisherTypeBuilder<EventMetaData.Builder>, org.refcodes.mixin.MetaDataAccessor.MetaDataBuilder<EventMetaData,EventMetaData.Builder>
Builder to build
EventMetaData
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builder method of the builder.withChannel
(String aChannel) withMetaData
(EventMetaData aEventMetaData) Merges all not-null values of the providedEventMetaData
instance into thisEventMetaData.Builder
instance.withPublisherType
(Class<?> aPublisherType) Sets the publisherType for the publisher's type property.withUniversalId
(String aUid)
-
Method Details
-
withAlias
- Specified by:
withAlias
in interfaceorg.refcodes.mixin.AliasAccessor.AliasBuilder<EventMetaData.Builder>
-
withChannel
- Specified by:
withChannel
in interfaceorg.refcodes.mixin.ChannelAccessor.ChannelBuilder<EventMetaData.Builder>
-
withGroup
- Specified by:
withGroup
in interfaceorg.refcodes.mixin.GroupAccessor.GroupBuilder<EventMetaData.Builder>
-
withUniversalId
- Specified by:
withUniversalId
in interfaceorg.refcodes.mixin.UniversalIdAccessor.UniversalIdBuilder<EventMetaData.Builder>
-
withPublisherType
Sets the publisherType for the publisher's type property.- Specified by:
withPublisherType
in interfacePublisherTypeAccessor.PublisherTypeBuilder<EventMetaData.Builder>
- Parameters:
aPublisherType
- The publisher's type to be stored by the publisher's type property.- Returns:
- The builder for applying multiple build operations.
-
withMetaData
Merges all not-null values of the providedEventMetaData
instance into thisEventMetaData.Builder
instance.- Specified by:
withMetaData
in interfaceorg.refcodes.mixin.MetaDataAccessor.MetaDataBuilder<EventMetaData,
EventMetaData.Builder> - Parameters:
aEventMetaData
- TheEventMetaData
instance to be merged into thisEventMetaData.Builder
instance.- Returns:
- This
EventMetaData.Builder
instance as of the builder pattern.
-
build
Builder method of the builder.- Returns:
- The built instance.
-