public interface Adaptable extends org.eclipse.ditto.model.base.headers.WithDittoHeaders<Adaptable>
Adaptable can be mapped to and from a Command, CommandResponse or Event.| Modifier and Type | Method and Description |
|---|---|
boolean |
containsHeaderForKey(CharSequence key)
Indicates whether this Adaptable contains a header with the specified key.
|
Optional<org.eclipse.ditto.model.base.headers.DittoHeaders> |
getHeaders()
Returns the
DittoHeaders of this Adaptable if present. |
Payload |
getPayload()
Returns the
Payload of this Adaptable. |
TopicPath |
getTopicPath()
Returns the
TopicPath of this Adaptable. |
static AdaptableBuilder |
newBuilder(TopicPath topicPath)
Returns a mutable builder to create immutable
Adaptable instances for a given topicPath. |
static AdaptableBuilder newBuilder(TopicPath topicPath)
Adaptable instances for a given topicPath.topicPath - the topic path.NullPointerException - if topicPath is null.TopicPath getTopicPath()
TopicPath of this Adaptable.Payload getPayload()
Payload of this Adaptable.Optional<org.eclipse.ditto.model.base.headers.DittoHeaders> getHeaders()
DittoHeaders of this Adaptable if present.boolean containsHeaderForKey(CharSequence key)
key - the key to be looked up.true if this Adaptable contains a header with key key.Copyright © 2017–2019 Eclipse Foundation. All rights reserved.