Skip to content

Commit 6de12f2

Browse files
committed
Add javadoc to BlobId
1 parent 93dd0c2 commit 6de12f2

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

  • gcloud-java-storage/src/main/java/com/google/gcloud/storage

gcloud-java-storage/src/main/java/com/google/gcloud/storage/BlobId.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,16 @@ private BlobId(String bucket, String name) {
3838
this.name = name;
3939
}
4040

41+
/**
42+
* Returns the name of the bucket containing the blob.
43+
*/
4144
public String bucket() {
4245
return bucket;
4346
}
4447

48+
/**
49+
* Returns the name of the blob.
50+
*/
4551
public String name() {
4652
return name;
4753
}
@@ -72,6 +78,12 @@ StorageObject toPb() {
7278
return storageObject;
7379
}
7480

81+
/**
82+
* Creates a blob identifier.
83+
*
84+
* @param bucket the name of the bucket that contains the blob
85+
* @param name the name of the blob
86+
*/
7587
public static BlobId of(String bucket, String name) {
7688
return new BlobId(checkNotNull(bucket), checkNotNull(name));
7789
}

0 commit comments

Comments
 (0)