Range Class

  • java.lang.Object
    • com.azure.storage.file.share.models.Range

Implements

public final class Range
implements XmlSerializable<Range>

An Azure Storage file range.

Constructor Summary

Constructor Description
Range()

Method Summary

Modifier and Type Method and Description
static Range fromXml(XmlReader xmlReader)

Reads an instance of Range from the XmlReader.

static Range fromXml(XmlReader xmlReader, String rootElementName)

Reads an instance of Range from the XmlReader.

long getEnd()

Get the end property: End of the range.

long getStart()

Get the start property: Start of the range.

Range setEnd(long end)

Set the end property: End of the range.

Range setStart(long start)

Set the start property: Start of the range.

XmlWriter toXml(XmlWriter xmlWriter)
XmlWriter toXml(XmlWriter xmlWriter, String rootElementName)

Methods inherited from java.lang.Object

Constructor Details

Range

public Range()

Method Details

fromXml

public static Range fromXml(XmlReader xmlReader)

Reads an instance of Range from the XmlReader.

Parameters:

xmlReader - The XmlReader being read.

Returns:

An instance of Range if the XmlReader was pointing to an instance of it, or null if it was pointing to XML null.

Throws:

XMLStreamException

- If the deserialized XML object was missing any required properties.

fromXml

public static Range fromXml(XmlReader xmlReader, String rootElementName)

Reads an instance of Range from the XmlReader.

Parameters:

xmlReader - The XmlReader being read.
rootElementName - Optional root element name to override the default defined by the model. Used to support cases where the model can deserialize from different root element names.

Returns:

An instance of Range if the XmlReader was pointing to an instance of it, or null if it was pointing to XML null.

Throws:

XMLStreamException

- If the deserialized XML object was missing any required properties.

getEnd

public long getEnd()

Get the end property: End of the range.

Returns:

the end value.

getStart

public long getStart()

Get the start property: Start of the range.

Returns:

the start value.

setEnd

public Range setEnd(long end)

Set the end property: End of the range.

Parameters:

end - the end value to set.

Returns:

the Range object itself.

setStart

public Range setStart(long start)

Set the start property: Start of the range.

Parameters:

start - the start value to set.

Returns:

the Range object itself.

toXml

public XmlWriter toXml(XmlWriter xmlWriter)

Parameters:

xmlWriter

Throws:

toXml

public XmlWriter toXml(XmlWriter xmlWriter, String rootElementName)

Parameters:

xmlWriter
rootElementName

Throws:

Applies to