From 530d8d1248799dcb5c5b9b9acea53b8eac781bc7 Mon Sep 17 00:00:00 2001 From: "Gary D. Gregory" Date: Sun, 24 Mar 2013 14:13:48 +0000 Subject: [PATCH] Javadoc toBuilder(). git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1460381 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/java/org/apache/commons/csv/CSVFormat.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/csv/CSVFormat.java b/src/main/java/org/apache/commons/csv/CSVFormat.java index 071d165c..919afdd3 100644 --- a/src/main/java/org/apache/commons/csv/CSVFormat.java +++ b/src/main/java/org/apache/commons/csv/CSVFormat.java @@ -33,9 +33,14 @@ import java.util.Arrays; /** * The format specification of a CSV file. - * + *

* This class is immutable. - * + *

+ *

+ * You can extend a format through a builder. For example, to extend the Excel format with columns header, you write: + *

+ *
CSVFormat.EXCEL.toBuilder().withHeader("Col1", "Col2", "Col3").build();
+ * * @version $Id$ */ public class CSVFormat implements Serializable {