Table¶
- public class Table extends BasicEntity<TableInstance>¶
Constructors¶
Table¶
Table¶
- protected Table(TableBase impl)¶
Methods¶
get¶
- public TableInstance get()¶
Get the corresponding
TableInstance
instance (for not indexed tables)- Throws
IllegalArgumentException
– if the entity has been deleted in the underlying AMPLUnsupportedOperationException
– if the entity is not scalar.
get¶
- public final TableInstance get(Object... key)¶
Get the table instance corresponding to the specified key. See Access to instances and values for further information on how the key can be specified.
- Parameters
key – The key to be found
- Throws
IllegalArgumentException
– if trying to access an instance with the wrong number of keys (seeEntity.indexarity
)
- Returns
The instance corresponding to the specified key. Returns
null
if the specified key is not present.
get¶
- public TableInstance get(Tuple key)¶
Get the table instance corresponding to the specified key, expressed as a Tuple. See Access to instances and values for further information on how the key can be specified.
- Parameters
key – The indexing Tuple of the instance to be found
- Throws
IllegalArgumentException
– if trying to access an instance with the wrong indexarity (seeEntity.indexarity
)
- Returns
The table instance corresponding to the specified key. Returns
null
if the specified key is not present.
impl¶
- TableBase impl()¶
iterator¶
- public Iterator<TableInstance> iterator()¶