Skip to content

Commit

Permalink
Fixed Record
Browse files Browse the repository at this point in the history
  • Loading branch information
HituziANDO committed Jan 13, 2019
1 parent d62d6c8 commit dea677b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions GoogleSpreadsheet/src/main/java/spreadsheetdb/v4/Record.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

public class Record {

/**
* `rowIndex` >= 1
*/
private final int rowIndex;
private List<Object> values;

Expand Down Expand Up @@ -41,6 +44,18 @@ public int getInt(int columnIndex) {
return Integer.parseInt(get(columnIndex).toString());
}

public long getLong(int columnIndex) {
return Long.parseLong(get(columnIndex).toString());
}

public float getFloat(int columnIndex) {
return Float.parseFloat(get(columnIndex).toString());
}

public double getDouble(int columnIndex) {
return Double.parseDouble(get(columnIndex).toString());
}

public String getString(int columnIndex) {
return (String) values.get(columnIndex);
}
Expand Down

0 comments on commit dea677b

Please sign in to comment.