Class GetResponse<T> (2.0.0)

public class GetResponse<T> implements Iterable<T>, Serializable

Represents a result of executing a GetRequest. The response contains a list of T.

Inheritance

java.lang.Object > GetResponse<T>

Type Parameter

NameDescription
T

Constructors

GetResponse(List<T> results)

protected GetResponse(List<T> results)

Creates a GetResponse by specifying a list of T.

Parameter
NameDescription
resultsList<T>

a list of T returned from the index

Methods

getResults()

public List<T> getResults()
Returns
TypeDescription
List<T>

an unmodifiable list of T from the index

iterator()

public Iterator<T> iterator()
Returns
TypeDescription
Iterator<T>

toString()

public String toString()
Returns
TypeDescription
String
Overrides