Lane.Builder


class Lane.Builder


A builder of Lane.

Summary

Public constructors

Returns an empty Builder instance.

Public functions

Lane.Builder

Adds a direction a driver can take from this lane.

Lane

Constructs the Lane defined by this builder.

Public constructors

Builder

Added in 1.0.0
Builder()

Returns an empty Builder instance.

Public functions

addDirection

Added in 1.0.0
fun addDirection(direction: LaneDirection): Lane.Builder

Adds a direction a driver can take from this lane.

Throws
java.lang.NullPointerException

if direction is null

build

Added in 1.0.0
fun build(): Lane

Constructs the Lane defined by this builder.