Range

open class Range : Parcelable, Comparable<T>

Represents a range indexed from 0.

Constructors

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

Link copied to clipboard
Creator for creating the Range object from Parcel.
Link copied to clipboard
@get:IntRange(from = 0)
val length: Int

Functions

Link copied to clipboard
open fun compareTo(@NonNull other: Range): Int
Link copied to clipboard
open fun describeContents(): Int
Link copied to clipboard
open fun equals(o: Any): Boolean
Link copied to clipboard
@IntRange(from = 0)
open fun getEndPosition(): Int
Returns the ending index for this range.
Link copied to clipboard
@IntRange(from = 0)
open fun getStartPosition(): Int
Returns starting index of this range.
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun toString(): String
Link copied to clipboard
open fun writeToParcel(dest: Parcel, flags: Int)