Skip to content

Commit

Permalink
Fix checkstyle errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jianghaolu committed Aug 27, 2016
1 parent 866a220 commit 2c7a100
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,13 @@

import com.microsoft.rest.ServiceCall;
import com.microsoft.rest.ServiceResponse;

import java.util.List;

import com.microsoft.rest.ServiceResponseWithHeaders;
import rx.Observable;
import rx.Subscriber;
import rx.functions.Func1;

import java.util.List;

/**
* An instance of this class provides access to the underlying REST call invocation.
* This class wraps around the Retrofit Call object and allows updates to it in the
Expand Down Expand Up @@ -46,6 +45,16 @@ public static <E> ServiceCall<List<E>> create(Observable<ServiceResponse<Page<E>
return serviceCall;
}

/**
* Creates a ServiceCall from a paging operation that returns a header response.
*
* @param first the observable to the first page
* @param next the observable to poll subsequent pages
* @param callback the client-side callback
* @param <E> the element type
* @param <V> the header object type
* @return the future based ServiceCall
*/
public static <E, V> ServiceCall<List<E>> createWithHeaders(Observable<ServiceResponseWithHeaders<Page<E>, V>> first, final Func1<String, Observable<ServiceResponseWithHeaders<Page<E>, V>>> next, final ListOperationCallback<E> callback) {
final AzureServiceCall<List<E>> serviceCall = new AzureServiceCall<>();
final PagingSubscriber<E> subscriber = new PagingSubscriber<>(serviceCall, new Func1<String, Observable<ServiceResponse<Page<E>>>>() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@

import com.google.common.util.concurrent.AbstractFuture;
import rx.Observable;
import rx.Scheduler;
import rx.Subscription;
import rx.functions.Action1;
import rx.functions.Func1;

/**
* An instance of this class provides access to the underlying REST call invocation.
Expand Down

0 comments on commit 2c7a100

Please sign in to comment.