Dag

@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class Dag(val id: String = "", val to: String = "")

Annotation to automate a Dag-builder pattern.

When applied on a class Foo, this generates a FooBuilder class with a static build method to create the Dag structure automatically.

Parameters

id

Override the Dag ID. If empty or not provided, the annotated class's name is used by default.

to

Name of the Dag-builder class. If empty or not provided, use the annotated class name + "Builder".

Properties

Link copied to clipboard
val id: String
Link copied to clipboard
val to: String