SpeedLimit

data class SpeedLimit(speedKmph: Int?, speedLimitUnit: SpeedLimitUnit, speedLimitSign: SpeedLimitSign)

Object that holds speed limit properties

Constructors

SpeedLimit
Link copied to clipboard
fun SpeedLimit(speedKmph: Int?, speedLimitUnit: SpeedLimitUnit, speedLimitSign: SpeedLimitSign)

Functions

component1
Link copied to clipboard
operator fun component1(): Int?
component2
Link copied to clipboard
operator fun component2(): SpeedLimitUnit
component3
Link copied to clipboard
operator fun component3(): SpeedLimitSign
copy
Link copied to clipboard
fun copy(speedKmph: Int?, speedLimitUnit: SpeedLimitUnit, speedLimitSign: SpeedLimitSign): SpeedLimit
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

Properties

speedKmph
Link copied to clipboard
val speedKmph: Int?
speed limit in kilometers per hour (optional)
speedLimitSign
Link copied to clipboard
val speedLimitSign: SpeedLimitSign
speedLimitUnit
Link copied to clipboard
val speedLimitUnit: SpeedLimitUnit