public abstract class ResponseTypes extends Object
ResponseType.| Modifier and Type | Method and Description |
|---|---|
static <R> ResponseType<R> |
instanceOf(Class<R> type)
Specify the desire to retrieve a single instance of type
R when performing a query. |
static <R> ResponseType<List<R>> |
multipleInstancesOf(Class<R> type)
Specify the desire to retrieve a collection of instances of type
R when performing a query. |
public static <R> ResponseType<R> instanceOf(Class<R> type)
R when performing a query.R - the generic type of the instantiated
ResponseTypetype - the R which is expected to be the response typeResponseType specifying the desire to retrieve a
single instance of type Rpublic static <R> ResponseType<List<R>> multipleInstancesOf(Class<R> type)
R when performing a query.R - the generic type of the instantiated
ResponseTypetype - the R which is expected to be the response typeResponseType specifying the desire to retrieve a
collection of instances of type RCopyright © 2010–2018. All rights reserved.