B - Any instance type of the hierarchy of EventDetails.Builder, required to allow the
hierarchy in the builders.E - Any class extending of EventDetails which will be generated by the
builder.public abstract static class EventDetails.Builder<B extends EventDetails.Builder<B,E>,E extends EventDetails>
extends java.lang.Object
EventDetails.| Modifier and Type | Field and Description |
|---|---|
protected com.google.common.collect.ImmutableMap.Builder<AbiquoKey,java.lang.Object> |
mapBuilder
The builder of the result immutable map.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Builder()
Initializes the builder.
|
| Modifier and Type | Method and Description |
|---|---|
abstract E |
build()
Builds the
E event details. |
B |
messageArgs(java.util.Map<? extends AbiquoKey,? extends java.lang.Object> messageArgs)
Adds the given message arguments.
|
B |
messageArgsCollection(java.util.Map<? extends AbiquoKey,java.util.Collection<java.lang.String>> messageArgs)
Adds the given message arguments (as collection).
|
B |
put(AbiquoKey key,
java.util.Collection<java.lang.String> value)
Associates
key with value (as collection) in the built map. |
B |
put(AbiquoKey key,
java.lang.String value)
Associates
key with value in the built map. |
protected abstract B |
self()
Returns an instance of the specific builder.
|
protected com.google.common.collect.ImmutableMap.Builder<AbiquoKey,java.lang.Object> mapBuilder
protected abstract B self()
public abstract E build()
E event details.public B messageArgs(java.util.Map<? extends AbiquoKey,? extends java.lang.Object> messageArgs)
messageArgs - the given message argumentspublic B put(AbiquoKey key, java.lang.String value)
key with value in the built map. Duplicate keys are not
allowed, and will cause build() to fail.key - value - public B messageArgsCollection(java.util.Map<? extends AbiquoKey,java.util.Collection<java.lang.String>> messageArgs)
messageArgs - the given message argumentsCopyright © 2008-2020 Abiquo Holdings S.L.. All Rights Reserved.