-
- All Implemented Interfaces:
public final class CsvBuilderKt
-
-
Method Summary
Modifier and Type Method Description final static <T extends Any> CsvResource<T>buildCsv(Function1<CsvResourceBuilder<T>, Unit> lambda)DSL style entry-point to build a CsvResource. -
-
Method Detail
-
buildCsv
final static <T extends Any> CsvResource<T> buildCsv(Function1<CsvResourceBuilder<T>, Unit> lambda)
DSL style entry-point to build a CsvResource. This approach should be used if a csv file is simple in structure and can be defined inline where it's used, rather than as a top level type definition.
Unlike implementing CsvResource with a concrete type, this function produces an anonymous class implementation so it probably shouldn't be invoked repeatedly for identical document shapes, like in a loop.
-
-
-
-