Skip to content
This repository was archived by the owner on Sep 15, 2024. It is now read-only.
This repository was archived by the owner on Sep 15, 2024. It is now read-only.

Provide builder API for option objects #38

@mysticfall

Description

@mysticfall

For instance, Route provides various apply methods which would instantiate the route instance with different properties.

However, when there are many options, providing factory methods for every combinations of them would be nearly impossible and using such API can be quite cumbersome and error prone.

Better approach would be provide a builder style API, like below :

val route = RouteBuilder().withTemplate("...").withTitle("...").build

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions