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