Skip to content

Commit 87792ed

Browse files
committed
fix test and add some javadoc
1 parent ce107b2 commit 87792ed

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/main/java/com/google/gcloud/storage/ListResult.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,16 @@ public ListResult(NextPageFetcher<T> pageFetcher, String cursor, Iterable<T> res
4141
this.results = results;
4242
}
4343

44+
/**
45+
* Returns the cursor for the nextPage or {@code null} if no more results.
46+
*/
4447
public String nextPageCursor() {
4548
return cursor;
4649
}
4750

51+
/**
52+
* Returns the results of the nextPage or {@code null} if no more result.
53+
*/
4854
public ListResult<T> nextPage() {
4955
if (cursor == null || pageFetcher == null) {
5056
return null;

src/test/java/com/google/gcloud/storage/SerializationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public class SerializationTest {
5151
Collections.<BatchResponse.Result<Blob>>emptyList(),
5252
Collections.<BatchResponse.Result<Blob>>emptyList());
5353
private static final ListResult<Blob> LIST_RESULT =
54-
new ListResult<>("c", Collections.singletonList(Blob.of("b", "n")));
54+
new ListResult<>(null, "c", Collections.singletonList(Blob.of("b", "n")));
5555
private static StorageService.BlobListOption BLOB_LIST_OPTIONS =
5656
StorageService.BlobListOption.maxResults(100);
5757
private static StorageService.BlobSourceOption BLOB_SOURCE_OPTIONS =

0 commit comments

Comments
 (0)