public static < T , K extends Enum < K > > CSVParserBuilder < T , K > aParser ( Function < CSVRecordWithHeader < K > , T > mapper , Class < K > fields ) { CSVParserBuilder < T , K > builder = new CSVParserBuilder < T , K > ( ) ; builder . recordWithHeaderMapper = mapper ; builder . subsetView = FieldSubsetView . forSourceSuppliedHeader ( fields ) ; return builder ; }
Create new header - aware parser using supplied mapping function .