RoadShield

class RoadShield(val fullRoadNumber: String, val shieldContent: String = "", val affixes: List<String> = emptyList(), val stateCode: String = "", val countryCode: String = "", val reference: String = "")

Represents a road shield.

Parameters

fullRoadNumber

Full road number. Most road numbers have a 'letter' prefix, which is also included.

shieldContent

The road number as shown on the shield.

affixes

List of possible affixes that can be shown in addition to the shieldContent.

stateCode

The state code containing the shield (second part of an ISO 3166-2 identifier).

countryCode

The country code (ISO 3166-1 alpha-3) containing the shield.

reference

Transparent identifier of the shield which may be empty if the underlying data source does not support the mapping.

Constructors

Link copied to clipboard
constructor(fullRoadNumber: String, shieldContent: String = "", affixes: List<String> = emptyList(), stateCode: String = "", countryCode: String = "", reference: String = "")

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
operator fun component1(): String
Link copied to clipboard
operator fun component2(): String
Link copied to clipboard
operator fun component3(): List<String>
Link copied to clipboard
operator fun component4(): String
Link copied to clipboard
operator fun component5(): String
Link copied to clipboard
operator fun component6(): String
Link copied to clipboard
fun copy(fullRoadNumber: String = this.fullRoadNumber, shieldContent: String = this.shieldContent, affixes: List<String> = this.affixes, stateCode: String = this.stateCode, countryCode: String = this.countryCode, reference: String = this.reference): RoadShield

Copies this object while allowing to change some properties.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Compares this object to another object.

Link copied to clipboard
open override fun hashCode(): Int

Calculates a hash value for this object.

Link copied to clipboard
open override fun toString(): String

Creates a string describing this object.