Interface EntityResponse<T>

    • Method Detail

      • entity

        T entity()
        Return the entity that makes up this response.
      • fromObject

        static <T> EntityResponse.Builder<T> fromObject​(T t)
        Create a builder with the given object.
        Type Parameters:
        T - the type of element contained in the publisher
        Parameters:
        t - the object that represents the body of the response
        Returns:
        the created builder
      • fromObject

        static <T> EntityResponse.Builder<T> fromObject​(T t,
                                                        ParameterizedTypeReference<T> entityType)
        Create a builder with the given object and type reference.
        Type Parameters:
        T - the type of element contained in the publisher
        Parameters:
        t - the object that represents the body of the response
        entityType - the type of the entity, used to capture the generic type
        Returns:
        the created builder