public class TableValueSupport extends AbstractMetaValue implements TableValue
| Constructor and Description |
|---|
TableValueSupport(TableMetaType tableType)
Construct Table Value with an initial capacity of 101 and a load
factor of 0.75
|
TableValueSupport(TableMetaType tableType,
int initialCapacity,
float loadFactor)
Construct Table value
|
| 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
|
TableValueSupport |
clone()
Clone the meta 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.
|
boolean |
equals(Object obj) |
CompositeValue |
get(MetaValue[] key)
Retrieve the composite value for the passed index.
|
TableMetaType |
getMetaType()
Get the metatype for this value
|
int |
hashCode() |
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.
|
String |
toString() |
Collection<CompositeValue> |
values()
Returns a set view of the row values.
|
public TableValueSupport(TableMetaType tableType)
tableType - the table type of the dataIllegalArgumentException - for a null argumentpublic TableValueSupport(TableMetaType tableType, int initialCapacity, float loadFactor)
tableType - the table typeinitialCapacity - the initial capacity of the maploadFactor - the load factory of the mapIllegalArgumentException - for a null argumentpublic TableMetaType getMetaType()
MetaValuegetMetaType in interface MetaValuegetMetaType in interface TableValuepublic MetaValue[] calculateIndex(CompositeValue value)
TableValuecalculateIndex in interface TableValuevalue - the value for which the index is calculated.public void clear()
TableValueclear in interface TableValuepublic boolean containsKey(MetaValue[] key)
TableValuecontainsKey in interface TableValuekey - the value to checkpublic boolean containsValue(CompositeValue value)
TableValuecontainsValue in interface TableValuevalue - the value to checkpublic CompositeValue get(MetaValue[] key)
TableValueget in interface TableValuekey - the index to retrievepublic boolean isEmpty()
TableValueisEmpty in interface TableValuepublic Set<List<MetaValue>> keySet()
TableValuekeySet in interface TableValuepublic void put(CompositeValue value)
TableValueput in interface TableValuevalue - the value to addpublic void putAll(CompositeValue[] values)
TableValueputAll in interface TableValuevalues - the values to addpublic CompositeValue remove(MetaValue[] key)
TableValueremove in interface TableValuekey - the index of the value to removepublic int size()
TableValuesize in interface TableValuepublic Collection<CompositeValue> values()
TableValuevalues in interface TableValuepublic TableValueSupport clone()
MetaValueclone in interface MetaValueclone in class AbstractMetaValueCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.