| Modifier and Type | Method and Description |
|---|---|
static <T,R extends Resource<T>> |
getEntity(R resource)
Return the entity of a resource
|
static String |
getId(Resource<?> resource)
Returns the id of a resource
|
static <R extends Resource<?>,U extends PaginatedResponse<R>> |
getResources(U response)
Return a stream of resources from a response
|
public static <T,R extends Resource<T>> T getEntity(R resource)
T - the type of the resource's entityR - the resource typeresource - the resourcepublic static String getId(Resource<?> resource)
resource - the resourcepublic static <R extends Resource<?>,U extends PaginatedResponse<R>> Flux<R> getResources(U response)
R - the resource typeU - the response typeresponse - the responseCopyright © 2016 Pivotal Software, Inc.. All rights reserved.