Modifier and Type | Method and Description |
---|---|
static <T> SearchPage<T> |
searchPageFor(SearchHits<T> searchHits,
Pageable pageable) |
static Object |
unwrapSearchHits(Object result)
unwraps the data contained in a SearchHit for different types containing SearchHits if possible
|
@Nullable public static Object unwrapSearchHits(@Nullable Object result)
result
- the object, list, page or whatever containing SearchHit objectspublic static <T> SearchPage<T> searchPageFor(SearchHits<T> searchHits, @Nullable Pageable pageable)
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.