public final class BlockEntry extends Object
CloudBlockBlob.| Constructor and Description |
|---|
BlockEntry(String id)
Creates an instance of the
BlockEntry class with the specified id and default search mode
BlockSearchMode.LATEST. |
BlockEntry(String id,
BlockSearchMode searchMode)
Creates an instance of the
BlockEntry class with the specified id and search mode. |
| Modifier and Type | Method and Description |
|---|---|
String |
getId()
Gets the id of the block.
|
BlockSearchMode |
getSearchMode()
Gets the
BlockSearchMode. |
long |
getSize()
Gets the size, in bytes, of the block.
|
void |
setId(String id)
Sets the id of the block.
|
void |
setSearchMode(BlockSearchMode searchMode)
Sets the
BlockSearchMode. |
void |
setSize(long size)
Sets the size, in bytes, of the block.
|
public BlockEntry(String id)
BlockEntry class with the specified id and default search mode
BlockSearchMode.LATEST.id - A String which represents the ID of the block.public BlockEntry(String id, BlockSearchMode searchMode)
BlockEntry class with the specified id and search mode.id - A String which represents the ID of the block.searchMode - A BlockSearchMode value which represents the block search mode.public String getId()
String which represents the ID of the block.public long getSize()
long which represents the the size, in bytes, of the block.public BlockSearchMode getSearchMode()
BlockSearchMode.BlockSearchMode value which represents the block search mode.public void setId(String id)
id - A String which represents the ID of the block to set.public void setSize(long size)
size - A long which represents the the size, in bytes, of the block to set.public void setSearchMode(BlockSearchMode searchMode)
BlockSearchMode.searchMode - A BlockSearchMode value which represents the block search mode to set.Copyright © 2018. All Rights Reserved.