|
16 | 16 |
|
17 | 17 | package com.google.cloud.bigtable.admin.v2;
|
18 | 18 |
|
19 |
| -import com.google.api.core.ApiFunction; |
20 | 19 | import com.google.api.core.ApiFuture;
|
21 | 20 | import com.google.api.core.ApiFutures;
|
22 | 21 | import com.google.api.core.BetaApi;
|
@@ -3087,14 +3086,7 @@ public static ApiFuture<ListTablesPagedResponse> createAsync(
|
3087 | 3086 | ApiFuture<ListTablesPage> futurePage =
|
3088 | 3087 | ListTablesPage.createEmptyPage().createPageAsync(context, futureResponse);
|
3089 | 3088 | return ApiFutures.transform(
|
3090 |
| - futurePage, |
3091 |
| - new ApiFunction<ListTablesPage, ListTablesPagedResponse>() { |
3092 |
| - @Override |
3093 |
| - public ListTablesPagedResponse apply(ListTablesPage input) { |
3094 |
| - return new ListTablesPagedResponse(input); |
3095 |
| - } |
3096 |
| - }, |
3097 |
| - MoreExecutors.directExecutor()); |
| 3089 | + futurePage, input -> new ListTablesPagedResponse(input), MoreExecutors.directExecutor()); |
3098 | 3090 | }
|
3099 | 3091 |
|
3100 | 3092 | private ListTablesPagedResponse(ListTablesPage page) {
|
@@ -3168,12 +3160,7 @@ public static ApiFuture<ListSnapshotsPagedResponse> createAsync(
|
3168 | 3160 | ListSnapshotsPage.createEmptyPage().createPageAsync(context, futureResponse);
|
3169 | 3161 | return ApiFutures.transform(
|
3170 | 3162 | futurePage,
|
3171 |
| - new ApiFunction<ListSnapshotsPage, ListSnapshotsPagedResponse>() { |
3172 |
| - @Override |
3173 |
| - public ListSnapshotsPagedResponse apply(ListSnapshotsPage input) { |
3174 |
| - return new ListSnapshotsPagedResponse(input); |
3175 |
| - } |
3176 |
| - }, |
| 3163 | + input -> new ListSnapshotsPagedResponse(input), |
3177 | 3164 | MoreExecutors.directExecutor());
|
3178 | 3165 | }
|
3179 | 3166 |
|
@@ -3248,14 +3235,7 @@ public static ApiFuture<ListBackupsPagedResponse> createAsync(
|
3248 | 3235 | ApiFuture<ListBackupsPage> futurePage =
|
3249 | 3236 | ListBackupsPage.createEmptyPage().createPageAsync(context, futureResponse);
|
3250 | 3237 | return ApiFutures.transform(
|
3251 |
| - futurePage, |
3252 |
| - new ApiFunction<ListBackupsPage, ListBackupsPagedResponse>() { |
3253 |
| - @Override |
3254 |
| - public ListBackupsPagedResponse apply(ListBackupsPage input) { |
3255 |
| - return new ListBackupsPagedResponse(input); |
3256 |
| - } |
3257 |
| - }, |
3258 |
| - MoreExecutors.directExecutor()); |
| 3238 | + futurePage, input -> new ListBackupsPagedResponse(input), MoreExecutors.directExecutor()); |
3259 | 3239 | }
|
3260 | 3240 |
|
3261 | 3241 | private ListBackupsPagedResponse(ListBackupsPage page) {
|
|
0 commit comments