Skip to content

Commit b042bd8

Browse files
committed
Remove primitive APIs in CSVRecord.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1510455 13f79535-47bb-0310-9956-ffa450edef68
1 parent 6208f0c commit b042bd8

4 files changed

Lines changed: 0 additions & 242 deletions

File tree

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

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -107,23 +107,6 @@ public String get(final String name) {
107107
}
108108
}
109109

110-
/**
111-
* Returns a value by name.
112-
*
113-
* @param name
114-
* the name of the column to be retrieved.
115-
* @return the column value
116-
* @throws IllegalStateException
117-
* if no header mapping was provided
118-
* @throws IllegalArgumentException
119-
* if the record is inconsistent
120-
* @see #isConsistent()
121-
*/
122-
public boolean getBoolean(String name) {
123-
String s = this.get(name);
124-
return s != null ? Boolean.parseBoolean(s) : false;
125-
}
126-
127110
/**
128111
* Returns the comment for this record, if any.
129112
*
@@ -134,40 +117,6 @@ public String getComment() {
134117
return comment;
135118
}
136119

137-
/**
138-
* Returns a value by name.
139-
*
140-
* @param name
141-
* the name of the column to be retrieved.
142-
* @return the column value
143-
* @throws IllegalStateException
144-
* if no header mapping was provided
145-
* @throws IllegalArgumentException
146-
* if the record is inconsistent
147-
* @see #isConsistent()
148-
*/
149-
public int getInt(String name) {
150-
String s = this.get(name);
151-
return s != null ? Integer.parseInt(s) : 0;
152-
}
153-
154-
/**
155-
* Returns a value by name.
156-
*
157-
* @param name
158-
* the name of the column to be retrieved.
159-
* @return the column value
160-
* @throws IllegalStateException
161-
* if no header mapping was provided
162-
* @throws IllegalArgumentException
163-
* if the record is inconsistent
164-
* @see #isConsistent()
165-
*/
166-
public long getLong(String name) {
167-
String s = this.get(name);
168-
return s != null ? Long.parseLong(s) : 0;
169-
}
170-
171120
/**
172121
* Returns the number of this record in the parsed CSV file.
173122
*

src/test/java/org/apache/commons/csv/CSVRecordBooleanTest.java

Lines changed: 0 additions & 63 deletions
This file was deleted.

src/test/java/org/apache/commons/csv/CSVRecordIntTest.java

Lines changed: 0 additions & 64 deletions
This file was deleted.

src/test/java/org/apache/commons/csv/CSVRecordLongTest.java

Lines changed: 0 additions & 64 deletions
This file was deleted.

0 commit comments

Comments
 (0)