Package com.azure.storage.blob.models
Class PageRange
java.lang.Object
com.azure.storage.blob.models.PageRange
- All Implemented Interfaces:
- com.azure.xml.XmlSerializable<PageRange>
The PageRange model.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic PageRangefromXml(com.azure.xml.XmlReader xmlReader) Reads an instance of PageRange from the XmlReader.static PageRangeReads an instance of PageRange from the XmlReader.longgetEnd()Get the end property: The End property.longgetStart()Get the start property: The Start property.setEnd(long end) Set the end property: The End property.setStart(long start) Set the start property: The Start property.com.azure.xml.XmlWritertoXml(com.azure.xml.XmlWriter xmlWriter) com.azure.xml.XmlWriter
- 
Constructor Details- 
PageRangepublic PageRange()Creates an instance of PageRange class.
 
- 
- 
Method Details- 
getStartpublic long getStart()Get the start property: The Start property.- Returns:
- the start value.
 
- 
setStartSet the start property: The Start property.- Parameters:
- start- the start value to set.
- Returns:
- the PageRange object itself.
 
- 
getEndpublic long getEnd()Get the end property: The End property.- Returns:
- the end value.
 
- 
setEndSet the end property: The End property.- Parameters:
- end- the end value to set.
- Returns:
- the PageRange object itself.
 
- 
toXml- Specified by:
- toXmlin interface- com.azure.xml.XmlSerializable<PageRange>
- Throws:
- XMLStreamException
 
- 
toXmlpublic com.azure.xml.XmlWriter toXml(com.azure.xml.XmlWriter xmlWriter, String rootElementName) throws XMLStreamException - Specified by:
- toXmlin interface- com.azure.xml.XmlSerializable<PageRange>
- Throws:
- XMLStreamException
 
- 
fromXmlReads an instance of PageRange from the XmlReader.- Parameters:
- xmlReader- The XmlReader being read.
- Returns:
- An instance of PageRange 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 PageRange.
 
- 
fromXmlpublic static PageRange fromXml(com.azure.xml.XmlReader xmlReader, String rootElementName) throws XMLStreamException Reads an instance of PageRange 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 PageRange 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 PageRange.
 
 
-