Interface RetrieveThingsLiveCommandAnswerBuilder.ResponseFactory

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.eclipse.ditto.things.model.signals.commands.query.RetrieveThingsResponse retrieved​(java.util.List<org.eclipse.ditto.things.model.Thing> things)
      Creates a success response containing the retrieved value for the RetrieveThings command.
      org.eclipse.ditto.things.model.signals.commands.query.RetrieveThingsResponse retrieved​(java.util.List<org.eclipse.ditto.things.model.Thing> things, java.util.function.Predicate<org.eclipse.ditto.json.JsonField> predicate)
      Creates a success response containing the retrieved value for the RetrieveThings command.
    • Method Detail

      • retrieved

        @Nonnull
        org.eclipse.ditto.things.model.signals.commands.query.RetrieveThingsResponse retrieved​(java.util.List<org.eclipse.ditto.things.model.Thing> things,
                                                                                               java.util.function.Predicate<org.eclipse.ditto.json.JsonField> predicate)
        Creates a success response containing the retrieved value for the RetrieveThings command.
        Parameters:
        things - the value of the requested Things.
        predicate - a predicate determining which fields from the provided Things should be included in the response.
        Returns:
        the response.
        Throws:
        java.lang.NullPointerException - if any argument is null.
      • retrieved

        @Nonnull
        org.eclipse.ditto.things.model.signals.commands.query.RetrieveThingsResponse retrieved​(java.util.List<org.eclipse.ditto.things.model.Thing> things)
        Creates a success response containing the retrieved value for the RetrieveThings command.
        Parameters:
        things - the value of the requested Things.
        Returns:
        the response.
        Throws:
        java.lang.NullPointerException - if things is null.