Class AbstractLiveCommand<T extends LiveCommand<T,B>,B extends LiveCommandAnswerBuilder>
- java.lang.Object
-
- org.eclipse.ditto.signals.commands.live.base.AbstractLiveCommand<T,B>
-
- Type Parameters:
T- the type of the LiveCommand; currently needed as return type forCommand.setDittoHeaders(DittoHeaders).B- the type of the LiveCommandAnswerBuilder to be returned forLiveCommand.answer().
- All Implemented Interfaces:
org.eclipse.ditto.model.base.headers.WithDittoHeaders<T>,org.eclipse.ditto.model.base.headers.WithManifest,org.eclipse.ditto.model.base.json.Jsonifiable<org.eclipse.ditto.json.JsonObject>,org.eclipse.ditto.model.base.json.Jsonifiable.WithPredicate<org.eclipse.ditto.json.JsonObject,org.eclipse.ditto.json.JsonField>,org.eclipse.ditto.model.things.WithThingId,org.eclipse.ditto.signals.base.Signal<T>,org.eclipse.ditto.signals.base.WithId,org.eclipse.ditto.signals.base.WithName,org.eclipse.ditto.signals.base.WithResource,org.eclipse.ditto.signals.base.WithType,org.eclipse.ditto.signals.commands.base.Command<T>,LiveCommand<T,B>
@ParametersAreNonnullByDefault @Immutable public abstract class AbstractLiveCommand<T extends LiveCommand<T,B>,B extends LiveCommandAnswerBuilder> extends Object implements LiveCommand<T,B>
An abstract base implementation for allLiveCommands.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.ditto.signals.commands.base.Command
org.eclipse.ditto.signals.commands.base.Command.Category, org.eclipse.ditto.signals.commands.base.Command.JsonFields
-
Nested classes/interfaces inherited from interface org.eclipse.ditto.model.base.json.Jsonifiable
org.eclipse.ditto.model.base.json.Jsonifiable.WithFieldSelector, org.eclipse.ditto.model.base.json.Jsonifiable.WithFieldSelectorAndPredicate<T extends Object>, org.eclipse.ditto.model.base.json.Jsonifiable.WithPointer<J extends org.eclipse.ditto.json.JsonValue>, org.eclipse.ditto.model.base.json.Jsonifiable.WithPredicate<J extends org.eclipse.ditto.json.JsonValue,T extends Object>
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractLiveCommand(org.eclipse.ditto.signals.commands.base.Command<?> command)Constructs a newAbstractLiveCommandobject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)org.eclipse.ditto.model.base.headers.DittoHeadersgetDittoHeaders()StringgetManifest()org.eclipse.ditto.json.JsonPointergetResourcePath()StringgetType()inthashCode()org.eclipse.ditto.json.JsonObjecttoJson(org.eclipse.ditto.model.base.json.JsonSchemaVersion schemaVersion, Predicate<org.eclipse.ditto.json.JsonField> predicate)StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.ditto.signals.commands.base.Command
getCategory, getImplementedSchemaVersion, getTypePrefix, setDittoHeaders, toJson
-
Methods inherited from interface org.eclipse.ditto.model.base.json.Jsonifiable
getLatestSchemaVersion, getSupportedSchemaVersions, implementsSchemaVersion, implementsSchemaVersion, toJsonString
-
Methods inherited from interface org.eclipse.ditto.model.base.json.Jsonifiable.WithPredicate
toJson, toJsonString, toJsonString
-
Methods inherited from interface org.eclipse.ditto.signals.commands.live.base.LiveCommand
answer
-
-
-
-
Constructor Detail
-
AbstractLiveCommand
protected AbstractLiveCommand(org.eclipse.ditto.signals.commands.base.Command<?> command)
Constructs a newAbstractLiveCommandobject.- Parameters:
command- the command to be wrapped by the returned object.- Throws:
NullPointerException- ifcommandisnull.
-
-
Method Detail
-
getResourcePath
public org.eclipse.ditto.json.JsonPointer getResourcePath()
- Specified by:
getResourcePathin interfaceorg.eclipse.ditto.signals.base.WithResource
-
getManifest
@Nonnull public String getManifest()
- Specified by:
getManifestin interfaceorg.eclipse.ditto.model.base.headers.WithManifest
-
getDittoHeaders
public org.eclipse.ditto.model.base.headers.DittoHeaders getDittoHeaders()
- Specified by:
getDittoHeadersin interfaceorg.eclipse.ditto.model.base.headers.WithDittoHeaders<T extends LiveCommand<T,B>>
-
getType
public String getType()
- Specified by:
getTypein interfaceorg.eclipse.ditto.signals.base.WithType
-
toJson
public org.eclipse.ditto.json.JsonObject toJson(org.eclipse.ditto.model.base.json.JsonSchemaVersion schemaVersion, Predicate<org.eclipse.ditto.json.JsonField> predicate)- Specified by:
toJsonin interfaceorg.eclipse.ditto.signals.commands.base.Command<T extends LiveCommand<T,B>>- Specified by:
toJsonin interfaceorg.eclipse.ditto.model.base.json.Jsonifiable.WithPredicate<T extends LiveCommand<T,B>,B extends LiveCommandAnswerBuilder>
-
-