public interface Table extends ColumnIterable
Modifier and Type | Method and Description |
---|---|
Column |
addColumn(String id,
Class type)
Adds a new column to this table.
|
Column |
addColumn(String id,
Class type,
Origin origin)
Adds a new column to this table.
|
Column |
addColumn(String id,
String title,
Class type,
Object defaultValue)
Adds a new column to this table.
|
Column |
addColumn(String id,
String title,
Class type,
Origin origin,
Object defaultValue,
boolean indexed)
Adds a new column to this table.
|
int |
countColumns()
Counts the columns in this table.
|
TableObserver |
createTableObserver(boolean withDiff)
Creates a new table observer and return it.
|
Column |
getColumn(int index)
Returns the column at the given index.
|
Column |
getColumn(String id)
Returns the column with the given identifier.
|
Class |
getElementClass()
The element class of this column.
|
boolean |
hasColumn(String id)
Returns true if this table has the column.
|
void |
removeColumn(Column column)
Removes the given column from this table.
|
void |
removeColumn(String id)
Removes the given column based on its identifier from this table.
|
doBreak, iterator, toArray, toList
forEach, spliterator
Column addColumn(String id, Class type)
id
- the unique column identifiertype
- the column typeColumn addColumn(String id, Class type, Origin origin)
id
- the unique column identifiertype
- the column typeorigin
- the column's originColumn addColumn(String id, String title, Class type, Object defaultValue)
id
- the unique column identifiertitle
- the column titletype
- the column typedefaultValue
- the default valueColumn addColumn(String id, String title, Class type, Origin origin, Object defaultValue, boolean indexed)
id
- the unique column identifiertitle
- the column titletype
- the column typeorigin
- the column's origindefaultValue
- the default valueindexed
- whether the column should be indexedColumn getColumn(int index)
index
- the column's indexColumn getColumn(String id)
id
- the column's idboolean hasColumn(String id)
id
- the column's identifiervoid removeColumn(Column column)
column
- the column to removevoid removeColumn(String id)
id
- the column's identifierint countColumns()
Class getElementClass()
TableObserver createTableObserver(boolean withDiff)
withDiff
- true if table observer should provide column differencesCopyright © 2007–2015 Gephi Consortium. All rights reserved.