public String getNDelimitedStrings ( int n ) { return IntStream . range ( 0 , config . getColsPerRow ( ) ) . mapToObj ( i -> "'" + dataGenerator . getRandomValue ( ) + "'" ) . collect ( Collectors . joining ( "," ) ) ; }
Assumes delimiter to be comma since that covers all the usecase for now . Will parameterize if use cases differ on delimiter .