/** * Returns the column index for a given key. * * @param key the column key ({@code null} not permitted). * * @return The column index. * * @see #getColumnKey(int) */ @Override public int getColumnIndex(Comparable key) { return this.data.getColumnIndex(key); }
/** * Returns the column index for a given key. * * @param key the column key ({@code null} not permitted). * * @return The column index. */ @Override public int getColumnIndex(Comparable key) { // defer null argument check return this.data.getColumnIndex(key); }
/** * Returns the column index for a given key. * * @param key the column key (<code>null</code> not permitted). * * @return The column index. * * @see #getColumnKey(int) */ public int getColumnIndex(Comparable key) { return this.data.getColumnIndex(key); }
/** * Returns the column index for a given key. * * @param key the column key (<code>null</code> not permitted). * * @return The column index. */ public int getColumnIndex(Comparable key) { // defer null argument check return this.data.getColumnIndex(key); }
/** * Returns the column index for a given key. * * @param key the column key. * * @return The column index. */ @Override public int getColumnIndex(Comparable key) { return this.data.getColumnIndex(key); }
/** * Returns the column index for a given key. * * @param key the column key. * * @return The column index. */ public int getColumnIndex(Comparable key) { return this.data.getColumnIndex(key); }
/** * Removes an entire column from the table. * * @param columnKey the column key ({@code null} not permitted). * * @throws UnknownKeyException if {@code rowKey} is not recognised. * * @see #removeRow(Comparable) */ public void removeColumn(Comparable columnKey) { int index = getColumnIndex(columnKey); if (index < 0) { throw new UnknownKeyException("Column key (" + columnKey + ") not recognised."); } Iterator iterator = this.rows.iterator(); while (iterator.hasNext()) { KeyedObjects rowData = (KeyedObjects) iterator.next(); int i = rowData.getIndex(columnKey); if (i >= 0) { rowData.removeValue(i); } } this.columnKeys.remove(columnKey); }
/** * Removes an entire column from the table. * * @param columnKey the column key (<code>null</code> not permitted). * * @throws UnknownKeyException if <code>rowKey</code> is not recognised. * * @see #removeRow(Comparable) */ public void removeColumn(Comparable columnKey) { int index = getColumnIndex(columnKey); if (index < 0) { throw new UnknownKeyException("Column key (" + columnKey + ") not recognised."); } Iterator iterator = this.rows.iterator(); while (iterator.hasNext()) { KeyedObjects rowData = (KeyedObjects) iterator.next(); int i = rowData.getIndex(columnKey); if (i >= 0) { rowData.removeValue(i); } } this.columnKeys.remove(columnKey); }
int r = this.data.getColumnIndex(columnKey); int c = this.data.getRowIndex(rowKey); if ((r == this.maximumRangeValueRow && c
int r = this.data.getColumnIndex(columnKey); int c = this.data.getRowIndex(rowKey); if ((r == this.maximumRangeValueRow && c
+ ") not recognised."); int columnIndex = getColumnIndex(columnKey); if (columnIndex < 0) { throw new UnknownKeyException("Column key (" + columnKey
+ ") not recognised."); int columnIndex = getColumnIndex(columnKey); if (columnIndex < 0) { throw new UnknownKeyException("Column key (" + columnKey
int c = this.data.getColumnIndex(columnKey); if ((this.maximumRangeValueRow == r && this.maximumRangeValueColumn == c) || (this.minimumRangeValueRow == r
int c = this.data.getColumnIndex(columnKey); if ((this.maximumRangeValueRow == r && this.maximumRangeValueColumn == c) || (this.minimumRangeValueRow == r