/** * @deprecated use {@link #addArrayColumn(String, String)} instead */ @Deprecated // in 2.7; remove from 2.8 public Builder addArrayColumn(String name, int elementSeparator) { int index = _columns.size(); return addColumn(new Column(index, name, ColumnType.ARRAY, elementSeparator)); }
/** * @deprecated use {@link #addArrayColumn(String, String)} instead */ @Deprecated // in 2.7; remove from 2.8 public Builder addArrayColumn(String name, int elementSeparator) { int index = _columns.size(); return addColumn(new Column(index, name, ColumnType.ARRAY, elementSeparator)); }
/** * NOTE: does NOT check for duplicate column names so it is possibly to * accidentally add duplicates. */ public Builder addColumn(String name) { int index = _columns.size(); return addColumn(new Column(index, name)); }
public Builder addColumn(String name, ColumnType type) { int index = _columns.size(); return addColumn(new Column(index, name, type)); } public Builder addColumn(Column c) {
public Builder addNumberColumn(String name) { int index = _columns.size(); return addColumn(new Column(index, name, ColumnType.NUMBER)); } public Builder addBooleanColumn(String name) {
public Column withName(String newName) { if (_name == newName) { return this; } return new Column(_index, newName, _type, _arrayElementSeparator); }
public Column withName(String newName) { return new Column(_index, newName, _type); } public Column withType(ColumnType newType) {
public Column withType(ColumnType newType) { if (newType == _type) { return this; } return new Column(_index, _name, newType, _arrayElementSeparator); }
public Column withName(String newName) { if (_name == newName) { return this; } return new Column(_index, newName, _type, _arrayElementSeparator); }
/** * @since 2.7 */ public Builder addArrayColumn(String name, String elementSeparator) { int index = _columns.size(); return addColumn(new Column(index, name, ColumnType.ARRAY, elementSeparator)); } public Builder addNumberColumn(String name) {
/** * @since 2.7 */ public Column withNext(int index, Column next) { if ((_index == index) && (_next == next)) { return this; } return new Column(this, index, next); }
public Column withType(ColumnType newType) { if (newType == _type) { return this; } return new Column(_index, _name, newType, _arrayElementSeparator); }
/** * @since 2.7 */ public Builder addArrayColumn(String name, String elementSeparator) { int index = _columns.size(); return addColumn(new Column(index, name, ColumnType.ARRAY, elementSeparator)); } public Builder addNumberColumn(String name) {
/** * NOTE: does NOT check for duplicate column names so it is possibly to * accidentally add duplicates. */ public Builder addColumn(String name, ColumnType type) { int index = _columns.size(); return addColumn(new Column(index, name, type)); }
/** * @since 2.7 */ public Column withNext(int index, Column next) { if ((_index == index) && (_next == next)) { return this; } return new Column(this, index, next); }
/** * NOTE: does NOT check for duplicate column names so it is possibly to * accidentally add duplicates. */ public Builder addColumn(String name, ColumnType type) { int index = _columns.size(); return addColumn(new Column(index, name, type)); }
/** * NOTE: does NOT check for duplicate column names so it is possibly to * accidentally add duplicates. */ public Builder addColumn(String name) { int index = _columns.size(); return addColumn(new Column(index, name)); }
public Builder addNumberColumn(String name) { int index = _columns.size(); return addColumn(new Column(index, name, ColumnType.NUMBER)); } public Builder addBooleanColumn(String name) {
public Column withNext(Column next) { if (_next == next) { return this; } return new Column(this, next); }
public Column withArrayElementSeparator(String separator) { String sep = _validArrayElementSeparator(separator); if (_arrayElementSeparator.equals(sep)) { return this; } return new Column(_index, _name, _type, sep); }