Skip to content

Commit

Permalink
[CSV-255] Add CSVRecord.isSet(int) method #52.
Browse files Browse the repository at this point in the history
Less cryptic parameter name.
  • Loading branch information
garydgregory committed Dec 25, 2019
1 parent 3a082f0 commit b581686
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/org/apache/commons/csv/CSVRecord.java
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,12 @@ public boolean isSet(final String name) {
/**
* Checks whether a column with given index has a value.
*
* @param i
* @param index
* a column index (0-based)
* @return whether a column with given index has a value
*/
public boolean isSet(final int i) {
return 0 <= i && i < values.length;
public boolean isSet(final int index) {
return 0 <= index && index < values.length;
}

/**
Expand Down

0 comments on commit b581686

Please sign in to comment.