Class ListResponse<T>
- java.lang.Object
-
- co.elasticsearch.enterprisesearch.client.model.response.documents.ListResponse<T>
-
-
Constructor Summary
Constructors Constructor Description ListResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)voidforEach(Consumer<? super T> action)List<T>getDocuments()The documents from the given engineMetagetMeta()The list metadatainthashCode()Iterator<T>iterator()ListResponse<T>setDocuments(List<T> documents)The documents from the given engineListResponse<T>setMeta(Meta meta)The list metadataSpliterator<T>spliterator()StringtoString()
-
-
-
Method Detail
-
spliterator
public Spliterator<T> spliterator()
- Specified by:
spliteratorin interfaceIterable<T>
-
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.
-
-