forked from Azure/azure-sdk-for-java
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1bd0424
commit bc8b084
Showing
15 changed files
with
3,069 additions
and
2,029 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
storage/client/src/main/java/com/azure/storage/blob/models/BlockItem.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
// Code generated by Microsoft (R) AutoRest Code Generator. | ||
|
||
package com.azure.storage.blob.models; | ||
|
||
/** | ||
* Represents a single block in a block blob. | ||
*/ | ||
public final class BlockItem { | ||
/* Internal block object. */ | ||
private Block block; | ||
|
||
private boolean isCommitted; | ||
|
||
/** | ||
* Creates an instance of a BlobItem. | ||
* @param block the API blob object | ||
* @param isCommitted if the blob is committed | ||
*/ | ||
public BlockItem(Block block, boolean isCommitted) { | ||
this.block = block; | ||
this.isCommitted = isCommitted; | ||
} | ||
|
||
/** | ||
* @return the base64 encoded block ID. | ||
*/ | ||
public String name() { | ||
return this.block.name(); | ||
} | ||
|
||
/** | ||
* @return the block size in bytes. | ||
*/ | ||
public int size() { | ||
return this.block.size(); | ||
} | ||
|
||
/** | ||
* @return if the block has been committed. | ||
*/ | ||
public boolean isCommitted() { | ||
return isCommitted; | ||
} | ||
} |
Oops, something went wrong.