RangedProperty

class RangedProperty<T : Comparable<T>> : VehicleProperties.VehicleProperty<T>

Property holding an optional Comparable value (such as a number) constrained by the range.

Parameters

T

The type specification for the members of this class.

min

The minimum value which can be set for this property.

max

The maximum value which can be set for this property.

value

Current value of the property. Can be null if it is temporarily unavailable or invalid.

Types

Link copied to clipboard
object CREATOR : Parcelable.Creator<VehicleProperties.RangedProperty<*>>

Properties

Link copied to clipboard
val max: T
Link copied to clipboard
val min: T
Link copied to clipboard
val range: ClosedRange<T>
Link copied to clipboard
open override val value: T?

Functions

Link copied to clipboard
open override fun describeContents(): Int
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 writeToParcel(parcel: Parcel, flags: Int)