Class ListResponse<T>

  • Type Parameters:
    T - The type of documents contained in the response
    All Implemented Interfaces:
    Iterable<T>

    public class ListResponse<T>
    extends Object
    implements Iterable<T>
    Represents a Response from List Document Request
    • Constructor Detail

      • ListResponse

        public ListResponse()
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getDocuments

        public List<T> getDocuments()
        The documents from the given engine
        Returns:
        the result documents
      • getMeta

        public Meta getMeta()
        The list metadata
        Returns:
        the response metadata
      • setDocuments

        public ListResponse<T> setDocuments​(List<T> documents)
        The documents from the given engine
        Parameters:
        documents - the result documents
        Returns:
        this.
      • setMeta

        public ListResponse<T> setMeta​(Meta meta)
        The list metadata
        Parameters:
        meta - the response metadata
        Returns:
        this.