public class ByteColumn extends AbstractColumn
m_columnType, m_defaultValue, m_listeners, m_parser, m_readOnly
Constructor and Description |
---|
ByteColumn()
Create a new empty IntColumn.
|
ByteColumn(int nrows)
Create a new IntColumn.
|
ByteColumn(int nrows,
int capacity,
byte defaultValue)
Create a new IntColumn.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
get(int row)
Get the data value at the specified row
|
byte |
getByte(int row) |
double |
getDouble(int row)
Get the data value at the specified row as a double
|
float |
getFloat(int row)
Get the data value at the specified row as a float
|
int |
getInt(int row)
Get the data value at the specified row as an integer
|
long |
getLong(int row)
Get the data value at the specified row as a long
|
int |
getRowCount()
Returns the number of rows in this data column
|
void |
set(java.lang.Object val,
int row)
Set the data value at the specified row
|
void |
setInt(int val,
int row)
Set the data value at the specified row as an integer
|
void |
setMaximumRow(int nrows)
Sets the number of rows in this data column
|
addColumnListener, canGet, canGetBoolean, canGetDate, canGetDouble, canGetFloat, canGetInt, canGetLong, canGetString, canSet, canSetBoolean, canSetDate, canSetDouble, canSetFloat, canSetInt, canSetLong, canSetString, fireColumnEvent, fireColumnEvent, fireColumnEvent, fireColumnEvent, fireColumnEvent, fireColumnEvent, fireColumnEvent, getBoolean, getColumnType, getDate, getDefaultValue, getParser, getString, isCellEditable, isReadOnly, removeColumnListener, revertToDefault, setBoolean, setDate, setDefaultValue, setDouble, setFloat, setLong, setParser, setReadOnly, setString
public ByteColumn()
public ByteColumn(int nrows)
nrows
- the initial size of the columnpublic ByteColumn(int nrows, int capacity, byte defaultValue)
nrows
- the initial size of the columncapacity
- the initial capacity of the columndefaultValue
- the default value for the columnpublic int getRowCount()
Column
Column.getRowCount()
public void setMaximumRow(int nrows)
Column
nrows
- the number of rowsColumn.setMaximumRow(int)
public java.lang.Object get(int row)
Column
row
- the row from which to retrieve the valueColumn.get(int)
public void set(java.lang.Object val, int row) throws DataTypeException
Column
val
- the value to setrow
- the row at which to set the valueDataTypeException
Column.set(java.lang.Object, int)
public byte getByte(int row) throws DataTypeException
DataTypeException
public int getInt(int row) throws DataTypeException
AbstractColumn
getInt
in interface Column
getInt
in class AbstractColumn
row
- the row from which to retrieve the valueDataTypeException
- if this column does not
support the integer typeAbstractColumn.getInt(int)
public void setInt(int val, int row) throws DataTypeException
AbstractColumn
setInt
in interface Column
setInt
in class AbstractColumn
val
- the value to setrow
- the row at which to set the valueDataTypeException
- if this column does not
support the integer typeAbstractColumn.setInt(int, int)
public long getLong(int row) throws DataTypeException
AbstractColumn
getLong
in interface Column
getLong
in class AbstractColumn
row
- the row from which to retrieve the valueDataTypeException
- if this column does not
support the long typeColumn.getLong(int)
public float getFloat(int row) throws DataTypeException
AbstractColumn
getFloat
in interface Column
getFloat
in class AbstractColumn
row
- the row from which to retrieve the valueDataTypeException
- if this column does not
support the float typeColumn.getFloat(int)
public double getDouble(int row) throws DataTypeException
AbstractColumn
getDouble
in interface Column
getDouble
in class AbstractColumn
row
- the row from which to retrieve the valueDataTypeException
- if this column does not
support the double typeColumn.getDouble(int)
Copyright ? 2013 Regents of the University of California