Table¶
-
public class
Table
extends BasicEntity<TableInstance>¶
Constructors¶
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 AMPL
- UnsupportedOperationException – 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 (see
Entity.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 (see
Entity.indexarity
)
Returns: The table instance corresponding to the specified key. Returns
null
if the specified key is not present.
iterator¶
-
public Iterator<TableInstance>
iterator
()¶