P
- The type of the payload to be carried.PayloadAccessor.PayloadProperty<P>
public interface PayloadAccessor<P>
Modifier and Type | Interface | Description |
---|---|---|
static interface |
PayloadAccessor.PayloadBuilder<P,B extends PayloadAccessor.PayloadBuilder<P,B>> |
Provides a builder method for a payload property returning the builder
for applying multiple build operations.
|
static interface |
PayloadAccessor.PayloadMutator<P> |
Provides a mutator for a payload property.
|
static interface |
PayloadAccessor.PayloadProperty<P> |
Provides a payload property.
|
Modifier and Type | Method | Description |
---|---|---|
P |
getPayload() |
Retrieves the payload from the payload property.
|
default P |
getPayloadOr(P aValue) |
Retrieves the value from the payload property.
|
P getPayload()
default P getPayloadOr(P aValue)
null
or empty as well
(being "" for a String
).aValue
- In case the value to be retrieved is null, then the given
value is returned.Copyright © 2021. All rights reserved.