ignore case on types, add category to javadoc

This commit is contained in:
Ben Fry
2014-10-22 18:56:43 -04:00
parent 0f930798ff
commit 897656c9b9

View File

@@ -1479,11 +1479,12 @@ public class Table {
/**
* Set the data type for a column so that using it is more efficient.
* @param column the column to change
* @param columnType One of int, long, float, double, or String.
* @param columnType One of int, long, float, double, string, or category.
*/
public void setColumnType(int column, String columnType) {
columnType = columnType.toLowerCase();
int type = -1;
if (columnType.equals("String")) {
if (columnType.equals("string")) {
type = STRING;
} else if (columnType.equals("int")) {
type = INT;