public class PageRange extends Object
Constructor and Description |
---|
PageRange(long start,
long end)
Creates an instance of the
class. |
Modifier and Type | Method and Description |
---|---|
long |
getEndOffset()
Gets the ending offset.
|
long |
getStartOffset()
Gets the starting offset.
|
void |
setEndOffset(long endOffset)
Sets the ending offset.
|
void |
setStartOffset(long startOffset)
Sets the starting offset.
|
String |
toString()
Returns the content of the page range as a string.
|
public PageRange(long start, long end)
PageRange
class.start
- A long
which represents the starting offset.end
- A long
which represents the ending offset.public long getEndOffset()
long
which represents the ending offset.public long getStartOffset()
long
which represents the starting offset.public void setEndOffset(long endOffset)
endOffset
- A long
which specifies the ending offset.public void setStartOffset(long startOffset)
startOffset
- A long
which specifies the starting offset./**
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/