|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.metatype.api.values.AbstractMetaValue
org.jboss.metatype.api.values.TableValueSupport
public class TableValueSupport
TableValueSupport.
| Constructor Summary | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TableValueSupport(TableMetaType tableType)
tableType - the table type of the data
IllegalArgumentException - for a null argument
public TableValueSupport(TableMetaType tableType,
int initialCapacity,
float loadFactor)
tableType - the table typeinitialCapacity - the initial capacity of the maploadFactor - the load factory of the map
IllegalArgumentException - for a null argument| Method Detail |
|---|
public TableMetaType getMetaType()
MetaValue
getMetaType in interface MetaValuegetMetaType in interface TableValuepublic MetaValue[] calculateIndex(CompositeValue value)
TableValue
calculateIndex in interface TableValuevalue - the value for which the index is calculated.
public void clear()
TableValue
clear in interface TableValuepublic boolean containsKey(MetaValue[] key)
TableValue
containsKey in interface TableValuekey - the value to check
public boolean containsValue(CompositeValue value)
TableValue
containsValue in interface TableValuevalue - the value to check
public CompositeValue get(MetaValue[] key)
TableValue
get in interface TableValuekey - the index to retrieve
public boolean isEmpty()
TableValue
isEmpty in interface TableValuepublic Set<List<MetaValue>> keySet()
TableValue
keySet in interface TableValuepublic void put(CompositeValue value)
TableValue
put in interface TableValuevalue - the value to addpublic void putAll(CompositeValue[] values)
TableValue
putAll in interface TableValuevalues - the values to addpublic CompositeValue remove(MetaValue[] key)
TableValue
remove in interface TableValuekey - the index of the value to remove
public int size()
TableValue
size in interface TableValuepublic Collection<CompositeValue> values()
TableValue
values in interface TableValuepublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectpublic TableValueSupport clone()
MetaValue
clone in interface MetaValueclone in class AbstractMetaValue
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||