ClearRange Class

  • java.lang.Object
    • com.azure.storage.blob.models.ClearRange

Implements

public final class ClearRange
implements XmlSerializable<ClearRange>

The ClearRange model.

Constructor Summary

Constructor Description
ClearRange()

Creates an instance of ClearRange class.

Method Summary

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

Reads an instance of ClearRange from the XmlReader.

static ClearRange fromXml(XmlReader xmlReader, String rootElementName)

Reads an instance of ClearRange from the XmlReader.

long getEnd()

Get the end property: The End property.

long getStart()

Get the start property: The Start property.

ClearRange setEnd(long end)

Set the end property: The End property.

ClearRange setStart(long start)

Set the start property: The Start property.

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

Methods inherited from java.lang.Object

Constructor Details

ClearRange

public ClearRange()

Creates an instance of ClearRange class.

Method Details

fromXml

public static ClearRange fromXml(XmlReader xmlReader)

Reads an instance of ClearRange from the XmlReader.

Parameters:

xmlReader - The XmlReader being read.

Returns:

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

Throws:

XMLStreamException

- If an error occurs while reading the ClearRange.

fromXml

public static ClearRange fromXml(XmlReader xmlReader, String rootElementName)

Reads an instance of ClearRange 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 ClearRange if the XmlReader was pointing to an instance of it, or null if it was pointing to XML null.

Throws:

XMLStreamException

- If an error occurs while reading the ClearRange.

getEnd

public long getEnd()

Get the end property: The End property.

Returns:

the end value.

getStart

public long getStart()

Get the start property: The Start property.

Returns:

the start value.

setEnd

public ClearRange setEnd(long end)

Set the end property: The End property.

Parameters:

end - the end value to set.

Returns:

the ClearRange object itself.

setStart

public ClearRange setStart(long start)

Set the start property: The Start property.

Parameters:

start - the start value to set.

Returns:

the ClearRange 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