Class LiveCommandAnswerFactory
- java.lang.Object
-
- org.eclipse.ditto.client.live.commands.base.LiveCommandAnswerFactory
-
@Immutable public final class LiveCommandAnswerFactory extends java.lang.Object
A factory for creating immutable instances ofLiveCommandAnswer
.- Since:
- 2.0.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LiveCommandAnswer
newLiveCommandAnswer(org.eclipse.ditto.base.model.signals.commands.CommandResponse<?> commandResponse)
Returns a new immutable instance ofLiveCommandAnswer
with the given CommandResponse.static LiveCommandAnswer
newLiveCommandAnswer(org.eclipse.ditto.base.model.signals.commands.CommandResponse<?> commandResponse, org.eclipse.ditto.base.model.signals.events.Event<?> event)
Returns a new immutable instance ofLiveCommandAnswer
with the given CommandResponse and Event.static LiveCommandAnswer
newLiveCommandAnswer(org.eclipse.ditto.base.model.signals.events.Event<?> event)
Returns a new immutable instance ofLiveCommandAnswer
with the given CommandResponse.
-
-
-
Method Detail
-
newLiveCommandAnswer
@Nonnull public static LiveCommandAnswer newLiveCommandAnswer(@Nullable org.eclipse.ditto.base.model.signals.commands.CommandResponse<?> commandResponse)
Returns a new immutable instance ofLiveCommandAnswer
with the given CommandResponse.- Parameters:
commandResponse
- the command response of the returned instance.- Returns:
- the instance.
-
newLiveCommandAnswer
@Nonnull public static LiveCommandAnswer newLiveCommandAnswer(@Nullable org.eclipse.ditto.base.model.signals.events.Event<?> event)
Returns a new immutable instance ofLiveCommandAnswer
with the given CommandResponse.- Parameters:
event
- the event of the returned instance.- Returns:
- the instance.
-
newLiveCommandAnswer
@Nonnull public static LiveCommandAnswer newLiveCommandAnswer(@Nullable org.eclipse.ditto.base.model.signals.commands.CommandResponse<?> commandResponse, @Nullable org.eclipse.ditto.base.model.signals.events.Event<?> event)
Returns a new immutable instance ofLiveCommandAnswer
with the given CommandResponse and Event.- Parameters:
commandResponse
- the command response of the returned instance.event
- the event of the returned instance.- Returns:
- the instance.
-
-