Block Class
- java.
lang. Object - com.
azure. storage. blob. models. Block
- com.
public final class Block
Represents a single block in a block blob. It describes the block's ID and size.
Constructor Summary
Constructor | Description |
---|---|
Block() |
Creates an instance of Block class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
getName()
Get the name property: The base64 encoded block ID. |
int |
getSize()
Deprecated
Use getSizeLong()
Get the size |
long |
getSizeLong()
Get the size |
Block |
setName(String name)
Set the name property: The base64 encoded block ID. |
Block |
setSize(int sizeInt)
Deprecated Set the size |
Block |
setSizeLong(long sizeLong)
Set the size |
Methods inherited from java.lang.Object
Constructor Details
Block
public Block()
Creates an instance of Block class.
Method Details
getName
public String getName()
Get the name property: The base64 encoded block ID.
Returns:
getSize
@Deprecated
public int getSize()
Deprecated
Get the sizeInt property: The SizeInt property.
Returns:
getSizeLong
public long getSizeLong()
Get the sizeLong property: The block size in bytes.
Returns:
setName
public Block setName(String name)
Set the name property: The base64 encoded block ID.
Parameters:
Returns:
setSize
@Deprecated
public Block setSize(int sizeInt)
Deprecated
Set the sizeInt property: The SizeInt property.
Parameters:
Returns:
setSizeLong
public Block setSizeLong(long sizeLong)
Set the sizeLong property: The block size in bytes.
Parameters:
Returns:
Applies to
Azure SDK for Java
الملاحظات
https://aka.ms/ContentUserFeedback.
قريبًا: خلال عام 2024، سنتخلص تدريجيًا من GitHub Issues بوصفها آلية إرسال ملاحظات للمحتوى ونستبدلها بنظام ملاحظات جديد. لمزيد من المعلومات، راجعإرسال الملاحظات وعرضها المتعلقة بـ