Package 

Class CsvBuilderKt

  • All Implemented Interfaces:

    
    public final class CsvBuilderKt
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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.