toggle menu
pspdfkit
PSPDFKit
switch theme
search in API
pspdfkit
/
com.pspdfkit.datastructures
/
Range
Range
open
class
Range
:
Parcelable
,
Comparable
<
T
>
Represents a range indexed from 0.
Members
Constructors
Range
Link copied to clipboard
constructor
(
@
IntRange
(
from
=
0
)
position
:
Int
,
@
IntRange
(
from
=
0
)
length
:
Int
)
Creates a range.
constructor
(
source
:
Parcel
)
Creates a
Range
object from the provided parcel.
Properties
CREATOR
Link copied to clipboard
val
CREATOR
:
Parcelable.Creator
<
Range
>
Creator for creating the
Range
object from
Parcel
.
length
Link copied to clipboard
@get:
IntRange
(
from
=
0
)
val
length
:
Int
Functions
compare
To
Link copied to clipboard
open
fun
compareTo
(
@
NonNull
other
:
Range
)
:
Int
describe
Contents
Link copied to clipboard
open
fun
describeContents
(
)
:
Int
equals
Link copied to clipboard
open
fun
equals
(
o
:
Any
)
:
Boolean
get
End
Position
Link copied to clipboard
@
IntRange
(
from
=
0
)
open
fun
getEndPosition
(
)
:
Int
Returns the ending index for this range.
get
Start
Position
Link copied to clipboard
@
IntRange
(
from
=
0
)
open
fun
getStartPosition
(
)
:
Int
Returns starting index of this range.
hash
Code
Link copied to clipboard
open
fun
hashCode
(
)
:
Int
to
String
Link copied to clipboard
open
fun
toString
(
)
:
String
write
To
Parcel
Link copied to clipboard
open
fun
writeToParcel
(
dest
:
Parcel
,
flags
:
Int
)