Class LiveCommandAnswerFactory


  • @Immutable
    public final class LiveCommandAnswerFactory
    extends java.lang.Object
    A factory for creating immutable instances of LiveCommandAnswer.
    Since:
    2.0.0
    • Method Detail

      • newLiveCommandAnswer

        @Nonnull
        public static LiveCommandAnswer newLiveCommandAnswer​(@Nullable
                                                             org.eclipse.ditto.base.model.signals.commands.CommandResponse<?> commandResponse)
        Returns a new immutable instance of LiveCommandAnswer 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 of LiveCommandAnswer 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 of LiveCommandAnswer 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.