Skip to content

Commit

Permalink
add another shortcut for ComposeRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
aozarov committed May 11, 2015
1 parent 4481a4a commit 535b0a1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/com/google/gcloud/storage/StorageService.java
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,10 @@ public static ComposeRequest of(Iterable<String> sources, Blob target) {
return builder().target(target).addSource(sources).build();
}

public static ComposeRequest of(String bucket, Iterable<String> sources, String target) {
return of(sources, Blob.of(bucket, target));
}

public static Builder builder() {
return new Builder();
}
Expand Down

0 comments on commit 535b0a1

Please sign in to comment.