Skip to content

Commit d103cba

Browse files
authored
Javadoc
1 parent 2ce1fbb commit d103cba

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

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

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@
3232
* <p>
3333
* Note: Support for {@link Serializable} is scheduled to be removed in version 2.0.
3434
* In version 1.8 the mapping between the column header and the column index was
35-
* removed from the serialised state. The class maintains serialization compatibility
35+
* removed from the serialized state. The class maintains serialization compatibility
3636
* with versions pre-1.8 for the record values; these must be accessed by index
37-
* following deserialization. There will be loss of any functionally linked to the header
38-
* mapping when transferring serialised forms pre-1.8 to 1.8 and vice versa.
37+
* following deserialization. There will be a loss of any functionally linked to the header
38+
* mapping when transferring serialized forms pre-1.8 to 1.8 and vice versa.
3939
* </p>
4040
*/
4141
public final class CSVRecord implements Serializable, Iterable<String> {
@@ -143,8 +143,8 @@ public long getCharacterPosition() {
143143
/**
144144
* Returns the comment for this record, if any.
145145
* Note that comments are attached to the following record.
146-
* If there is no following record (i.e. the comment is at EOF)
147-
* the comment will be ignored.
146+
* If there is no following record (i.e. the comment is at EOF),
147+
* then the comment will be ignored.
148148
*
149149
* @return the comment for this record, or null if no comment for this record is available.
150150
*/
@@ -189,8 +189,8 @@ public long getRecordNumber() {
189189
/**
190190
* Checks whether this record has a comment, false otherwise.
191191
* Note that comments are attached to the following record.
192-
* If there is no following record (i.e. the comment is at EOF)
193-
* the comment will be ignored.
192+
* If there is no following record (i.e. the comment is at EOF),
193+
* then the comment will be ignored.
194194
*
195195
* @return true if this record has a comment, false otherwise
196196
* @since 1.3
@@ -227,22 +227,22 @@ public boolean isMapped(final String name) {
227227
}
228228

229229
/**
230-
* Checks whether a column with given index has a value.
230+
* Checks whether a column with a given index has a value.
231231
*
232232
* @param index
233233
* a column index (0-based)
234-
* @return whether a column with given index has a value
234+
* @return whether a column with a given index has a value
235235
*/
236236
public boolean isSet(final int index) {
237237
return 0 <= index && index < values.length;
238238
}
239239

240240
/**
241-
* Checks whether a given columns is mapped and has a value.
241+
* Checks whether a given column is mapped and has a value.
242242
*
243243
* @param name
244244
* the name of the column to be retrieved.
245-
* @return whether a given columns is mapped and has a value
245+
* @return whether a given column is mapped and has a value
246246
*/
247247
public boolean isSet(final String name) {
248248
return isMapped(name) && getHeaderMapRaw().get(name).intValue() < values.length;
@@ -311,8 +311,8 @@ public List<String> toList() {
311311
}
312312

313313
/**
314-
* Copies this record into a new Map of header name to record value. If multiple instances of a header name exists,
315-
* only the last occurrence is mapped.
314+
* Copies this record into a new Map of header name to record value. If multiple instances of a header name exist,
315+
* then only the last occurrence is mapped.
316316
*
317317
* <p>
318318
* Editing the map does not update this instance.

0 commit comments

Comments
 (0)