public class ItemLookupResult<T>
extends java.lang.Object
ItemLookupStrategy. This result is immutable except it does not guarantee immutability
of the items returned by getEntries() method.| Modifier and Type | Method and Description |
|---|---|
static <T> ItemLookupResult<T> |
createFrom(java.util.List<T> entries) |
static <T> ItemLookupResult<T> |
createFrom(java.util.List<T> entries,
int totalCount) |
static <T> ItemLookupResult<T> |
createFrom(SearchResult<T> result) |
java.util.List<T> |
getEntries()
Retrieves items existing in the platform and matching the request conditions.
|
int |
getTotalCount()
Retrieves total number of items matching the request conditions and existing in the platform
|
<R> ItemLookupResult<R> |
map(java.util.function.Function<T,R> f)
Transforms this result into a result containing different kind of entries.
|
public static <T> ItemLookupResult<T> createFrom(SearchResult<T> result)
public static <T> ItemLookupResult<T> createFrom(java.util.List<T> entries, int totalCount)
public static <T> ItemLookupResult<T> createFrom(java.util.List<T> entries)
public java.util.List<T> getEntries()
ItemLookupRequest conditions or
a subset of all items in case of a paged request. When no items match the conditions, an empty list is returned.public int getTotalCount()
getEntries() method. Negative number indicates that total number of matching items is not calculated/unknown.public <R> ItemLookupResult<R> map(java.util.function.Function<T,R> f)
R - type of the entries in the transformed resultf - a function to be applied to each entry contained in this resultCopyright © 2018 SAP SE. All Rights Reserved.