/** * Sets the object for a cell in the table. The table is expanded if * necessary. * * @param row the row index (zero-based). * @param column the column index (zero-based). * @param object the object. */ protected void setObject(final int row, final int column, final Object object) { ensureCapacity(row, column); this.data[row][column] = object; this.rows = Math.max(this.rows, row + 1); this.columns = Math.max(this.columns, column + 1); }
/** * Sets the object for a cell in the table. The table is expanded if * necessary. * * @param row the row index (zero-based). * @param column the column index (zero-based). * @param object the object. */ protected void setObject(final int row, final int column, final Object object) { ensureCapacity(row, column); this.data[row][column] = object; this.rows = Math.max(this.rows, row + 1); this.columns = Math.max(this.columns, column + 1); }
/** * Sets the object for a cell in the table. The table is expanded if * necessary. * * @param row the row index (zero-based). * @param column the column index (zero-based). * @param object the object. */ protected void setObject(final int row, final int column, final Object object) { ensureCapacity(row, column); this.data[row][column] = object; this.rows = Math.max(this.rows, row + 1); this.columns = Math.max(this.columns, column + 1); }
/** * Copys the contents of the old row to the new row. This uses raw access to * the data and is remarkably faster than manual copying. * * @param oldRow the index of the old row * @param newRow the index of the new row */ protected void copyRow(final int oldRow, final int newRow) { this.ensureCapacity(newRow, getColumnCount()); final Object[] oldRowStorage = this.data[oldRow]; if (oldRowStorage == null) { final Object[] newRowStorage = this.data[newRow]; if (newRowStorage != null) { Arrays.fill(newRowStorage, null); } } else { this.data[newRow] = (Object[]) oldRowStorage.clone(); } }
/** * Copys the contents of the old row to the new row. This uses raw access to * the data and is remarkably faster than manual copying. * * @param oldRow the index of the old row * @param newRow the index of the new row */ protected void copyRow(final int oldRow, final int newRow) { this.ensureCapacity(newRow, getColumnCount()); final Object[] oldRowStorage = this.data[oldRow]; if (oldRowStorage == null) { final Object[] newRowStorage = this.data[newRow]; if (newRowStorage != null) { Arrays.fill(newRowStorage, null); } } else { this.data[newRow] = (Object[]) oldRowStorage.clone(); } }
/** * Copys the contents of the old row to the new row. This uses raw access to * the data and is remarkably faster than manual copying. * * @param oldRow the index of the old row * @param newRow the index of the new row */ protected void copyRow(final int oldRow, final int newRow) { this.ensureCapacity(newRow, getColumnCount()); final Object[] oldRowStorage = this.data[oldRow]; if (oldRowStorage == null) { final Object[] newRowStorage = this.data[newRow]; if (newRowStorage != null) { Arrays.fill(newRowStorage, null); } } else { this.data[newRow] = (Object[]) oldRowStorage.clone(); } }