Lane.Builder


public final class Lane.Builder


A builder of Lane.

Summary

Public constructors

Returns an empty Builder instance.

Public methods

@NonNull Lane.Builder

Adds a direction a driver can take from this lane.

@NonNull Lane

Constructs the Lane defined by this builder.

Public constructors

Builder

Added in 1.0.0
public Builder()

Returns an empty Builder instance.

Public methods

addDirection

Added in 1.0.0
public @NonNull Lane.Builder addDirection(@NonNull LaneDirection direction)

Adds a direction a driver can take from this lane.

Throws
java.lang.NullPointerException

if direction is null

build

Added in 1.0.0
public @NonNull Lane build()

Constructs the Lane defined by this builder.