public interface TableValue extends MetaValue
Modifier and Type | Method and Description |
---|---|
MetaValue[] |
calculateIndex(CompositeValue value)
Calculate the index for the value passed if it were added to the
table value.
|
void |
clear()
Removes all CompositeValues from the Table value
|
boolean |
containsKey(MetaValue[] key)
Determine whether the table value contains the passed value as a row.
|
boolean |
containsValue(CompositeValue value)
Determine whether the table value contains the passed value.
|
CompositeValue |
get(MetaValue[] key)
Retrieve the composite value for the passed index.
|
TableMetaType |
getMetaType()
Get the metatype for this value
|
boolean |
isEmpty()
Determine whether the table value is empty.
|
Set<List<MetaValue>> |
keySet()
Returns a set view of the index values.
|
void |
put(CompositeValue value)
Add a value to the table value.
|
void |
putAll(CompositeValue[] values)
Add all the passed values.
|
CompositeValue |
remove(MetaValue[] key)
Removes the value for the passed and returns the removed value, or
null if the key was not present.
|
int |
size()
Retrieve the number of rows in the table value.
|
Collection<CompositeValue> |
values()
Returns a set view of the row values.
|
TableMetaType getMetaType()
MetaValue
getMetaType
in interface MetaValue
MetaValue[] calculateIndex(CompositeValue value)
value
- the value for which the index is calculated.IllegalArgumentException
- for a null value or when the passed value is not valid for the table value's row type.int size()
boolean isEmpty()
boolean containsKey(MetaValue[] key)
key
- the value to checkboolean containsValue(CompositeValue value)
value
- the value to checkCompositeValue get(MetaValue[] key)
key
- the index to retrieveIllegalArgumentException
- when the passed key is null or when the passed key does match the row type of the table value.void put(CompositeValue value)
value
- the value to addIllegalArgumentException
- when the passed value is null or when the value is not valid for
the row type of the tabular data or when the index for the value is already occupied.CompositeValue remove(MetaValue[] key)
key
- the index of the value to removeIllegalArgumentException
- when the passed key is null or when the key is not valid for the table valuevoid putAll(CompositeValue[] values)
values
- the values to addIllegalArgumentException
- when the passed values is null or an element of the values is null
or when one of value is not valid for the row type of the table value or when
the index for one of the values is already occupied.void clear()
Set<List<MetaValue>> keySet()
Collection<CompositeValue> values()
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.