Skip to content

Commit 0c227a1

Browse files
committed
[csv] Rename methods for options
1 parent dffcbce commit 0c227a1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

csv-comparator/src/main/java/com/github/ngoanh2n/csv/CsvComparisonOptions.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ private Builder() {
100100
* @return The current {@link Builder}.
101101
* @see java.nio.charset.StandardCharsets
102102
*/
103-
public Builder setCharset(@Nullable Charset charset) {
103+
public Builder charset(@Nullable Charset charset) {
104104
this.charset = charset;
105105
return this;
106106
}
@@ -111,7 +111,7 @@ public Builder setCharset(@Nullable Charset charset) {
111111
* @param lineSeparator The sequence of 1 to 2 characters that identifies the end of a line.
112112
* @return The current {@link Builder}.
113113
*/
114-
public Builder setLineSeparator(@Nonnull String lineSeparator) {
114+
public Builder lineSeparator(@Nonnull String lineSeparator) {
115115
checkNotNull(lineSeparator, "`lineSeparator` cannot not be null");
116116
this.parserSettings.getFormat().setLineSeparator(lineSeparator);
117117
return this;
@@ -186,7 +186,7 @@ public Builder selectColumnId(int index) {
186186
* @param options to adjust output.
187187
* @return The current {@link Builder}.
188188
*/
189-
public Builder setResultOptions(@Nonnull CsvComparisonResultOptions options) {
189+
public Builder resultOptions(@Nonnull CsvComparisonResultOptions options) {
190190
this.resultOptions = options;
191191
return this;
192192
}

csv-comparator/src/main/java/com/github/ngoanh2n/csv/CsvComparisonResultOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ private Builder() {
8383
* @param path The path to location.
8484
* @return The current {@link CsvComparisonResultOptions.Builder}.
8585
*/
86-
public Builder setLocation(@Nonnull Path path) {
86+
public Builder location(@Nonnull Path path) {
8787
this.location = checkNotNull(path, "path cannot not be null");
8888
return this;
8989
}

0 commit comments

Comments
 (0)