Skip to content

Commit 340dba4

Browse files
authored
CSVRecord: Add .set() method
1 parent 546fd69 commit 340dba4

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/main/java/org/apache/commons/csv/CSVRecord.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,14 @@ public int size() {
236236
return values.length;
237237
}
238238

239+
/**
240+
* Sets a value in this record.
241+
*
242+
*/
243+
public void set(int index, String value) {
244+
values[index] = value;
245+
}
246+
239247
/**
240248
* Converts the values to a List.
241249
*

0 commit comments

Comments
 (0)