Skip to content

Commit 2d2f97e

Browse files
committed
javadoc update
1 parent 57174b8 commit 2d2f97e

File tree

3 files changed

+10
-25
lines changed

3 files changed

+10
-25
lines changed

lib/src/main/java/de/siegmar/fastcsv/reader/AbstractBaseCsvCallbackHandler.java

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,23 +27,17 @@ protected long getStartingLineNumber() {
2727
return startingLineNumber;
2828
}
2929

30-
/// Returns whether the current record is a comment.
31-
///
32-
/// @return `true` if the current record is a comment
30+
/// {@return whether the current record is a comment.}
3331
protected boolean isComment() {
3432
return comment;
3533
}
3634

37-
/// Returns whether the current record is an empty line.
38-
///
39-
/// @return `true` if the current record is an empty line
35+
/// {@return whether the current record is an empty line.}
4036
protected boolean isEmptyLine() {
4137
return emptyLine;
4238
}
4339

44-
/// Returns the number of fields in the current record.
45-
///
46-
/// @return the number of fields in the current record
40+
/// {@return the number of fields in the current record.}
4741
protected int getFieldCount() {
4842
return fieldCount;
4943
}

lib/src/main/java/de/siegmar/fastcsv/reader/CsvReader.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,15 +145,14 @@ public int skipLines(final Predicate<String> predicate, final int maxLines) {
145145
"No matching line found within the maximum limit of %d lines.", maxLines));
146146
}
147147

148-
/// Returns an iterator over elements of type [CsvRecord].
148+
/// {@return an iterator over elements of type [CsvRecord].}
149149
///
150150
/// The returned iterator is not thread-safe.
151151
/// Remember to close the returned iterator when you're done.
152152
/// Alternatively, use [#stream()].
153153
///
154154
/// This method is idempotent and can be called multiple times.
155155
///
156-
/// @return an iterator over the CSV records.
157156
/// @throws UncheckedIOException if an I/O error occurs.
158157
/// @throws CsvParseException if any other problem occurs when parsing the CSV data.
159158
/// @see #stream()
@@ -162,7 +161,7 @@ public CloseableIterator<T> iterator() {
162161
return csvRecordIterator;
163162
}
164163

165-
/// Returns a [Spliterator] over elements of type [CsvRecord].
164+
/// Constructs a [Spliterator] for splitting and traversing the elements of this reader.
166165
///
167166
/// The returned spliterator is not thread-safe.
168167
/// Remember to invoke [#close()] when you're done.
@@ -179,7 +178,7 @@ public Spliterator<T> spliterator() {
179178
return new CsvSpliterator();
180179
}
181180

182-
/// Returns a new sequential `Stream` with this reader as its source.
181+
/// Constructs a new sequential `Stream` with this reader as its source.
183182
///
184183
/// The returned stream is not thread-safe.
185184
/// Remember to close the returned stream when you're done.

lib/src/main/java/de/siegmar/fastcsv/reader/RecordWrapper.java

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,36 +36,28 @@ public final class RecordWrapper<T> {
3636
this.wrappedRecord = wrappedRecord;
3737
}
3838

39-
/// Returns whether the record denotes a comment.
39+
/// {@return whether the record denotes a comment.}
4040
///
4141
/// This method is only used if the [CsvReader] is configured to skip comments.
42-
///
43-
/// @return `true` if the record denotes a comment
4442
public boolean isComment() {
4543
return comment;
4644
}
4745

48-
/// Returns whether the record is empty.
46+
/// {@return whether the record is empty.}
4947
///
5048
/// This method is only used if the [CsvReader] is configured to skip empty lines.
51-
///
52-
/// @return `true` if the record is empty
5349
public boolean isEmptyLine() {
5450
return emptyLine;
5551
}
5652

57-
/// Returns the number of fields in the record.
53+
/// {@return the number of fields in the record.}
5854
///
5955
/// This method is only used if the [CsvReader] is configured to check the number of fields in each record.
60-
///
61-
/// @return the number of fields in the record
6256
public int getFieldCount() {
6357
return fieldCount;
6458
}
6559

66-
/// Returns the actual record to be returned by the [CsvReader].
67-
///
68-
/// @return the actual record to be returned by the [CsvReader], never `null`
60+
/// {@return the actual record to be returned by the [CsvReader], never `null`.}
6961
public T getWrappedRecord() {
7062
return wrappedRecord;
7163
}

0 commit comments

Comments
 (0)