Range

class Range

A range of integer values.

Types

Link copied to clipboard
class Builder
Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val from: Int?

The minimum value in the range.

Link copied to clipboard
val step: Int?

The step value for the range. For example, if you have a range of 5,000 to 10,000, with a step value of 1,000, the valid values start at 5,000 and step up by 1,000. Even though 7,500 is within the range, it isn't a valid value for the range. The valid values are 5,000, 6,000, 7,000, 8,000...

Link copied to clipboard
val to: Int?

The maximum value in the range.

Functions

Link copied to clipboard
inline fun copy(block: Range.Builder.() -> Unit = {}): Range
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String