Lines Matching refs:Function

23 import androidx.arch.core.util.Function;
137 * Same as {@link #mapByPage(Function)}, but operates on individual items.
139 * @param function Function that runs on each loaded item, returning items of a potentially
145 * @see #mapByPage(Function)
146 * @see DataSource#map(Function)
147 * @see DataSource#mapByPage(Function)
151 @NonNull Function<Value, ToValue> function) {
158 * Same as {@link #map(Function)}, but allows for batch conversions.
160 * @param function Function that runs on each loaded page, returning items of a potentially
166 * @see #map(Function)
167 * @see DataSource#map(Function)
168 * @see DataSource#mapByPage(Function)
172 @NonNull final Function<List<Value>, List<ToValue>> function) {
183 static <X, Y> Function<List<X>, List<Y>> createListFunction(
184 final @NonNull Function<X, Y> innerFunc) {
185 return new Function<List<X>, List<Y>>() {
197 static <A, B> List<B> convert(Function<List<A>, List<B>> function, List<A> source) {
200 throw new IllegalStateException("Invalid Function " + function
214 * Same as {@link #map(Function)}, but allows for batch conversions.
216 * @param function Function that runs on each loaded page, returning items of a potentially
222 * @see #map(Function)
223 * @see DataSource.Factory#map(Function)
224 * @see DataSource.Factory#mapByPage(Function)
228 @NonNull Function<List<Value>, List<ToValue>> function);
233 * Same as {@link #mapByPage(Function)}, but operates on individual items.
235 * @param function Function that runs on each loaded item, returning items of a potentially
241 * @see #mapByPage(Function)
242 * @see DataSource.Factory#map(Function)
243 * @see DataSource.Factory#mapByPage(Function)
247 @NonNull Function<Value, ToValue> function);