共用方式為


PageRange Class

  • java.lang.Object
    • com.microsoft.azure.storage.blob.PageRange

public class PageRange

Represents a range of pages in a page blob.

Constructor Summary

Constructor Description
PageRange(final long start, final long end)

Creates an instance of the class.

Method Summary

Modifier and Type Method and Description
long getEndOffset()

Gets the ending offset.

long getStartOffset()

Gets the starting offset.

void setEndOffset(final long endOffset)

Sets the ending offset.

void setStartOffset(final long startOffset)

Sets the starting offset.

String toString()

Returns the content of the page range as a string.

Constructor Details

PageRange

public PageRange(final long start, final long end)

Creates an instance of the class.

Parameters:

start - A long which represents the starting offset.
end - A long which represents the ending offset.

Method Details

getEndOffset

public long getEndOffset()

Gets the ending offset.

Returns:

A long which represents the ending offset.

getStartOffset

public long getStartOffset()

Gets the starting offset.

Returns:

A long which represents the starting offset.

setEndOffset

public void setEndOffset(final long endOffset)

Sets the ending offset.

Parameters:

endOffset - A long which specifies the ending offset.

setStartOffset

public void setStartOffset(final long startOffset)

Sets the starting offset.

Parameters:

startOffset - A long which specifies the starting offset.

toString

public String toString()

Returns the content of the page range as a string.

Returns:

A String which represents the contents of the page range.

Applies to