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

Name Description
T

Constructors

GetResponse(List<T> results)

protected GetResponse(List<T> results)

Creates a GetResponse by specifying a list of T.

Parameter
Name Description
results List<T>

a list of T returned from the index

Methods

getResults()

public List<T> getResults()
Returns
Type Description
List<T>

an unmodifiable list of T from the index

iterator()

public Iterator<T> iterator()
Returns
Type Description
Iterator<T>

toString()

public String toString()
Returns
Type Description
String
Overrides