|
JBoss Managed Parent POM 2.1.1.SP2 | |||||||||
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 argumentpublic 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 argumentMethod Detail |
---|
public TableMetaType getMetaType()
MetaValue
getMetaType
in interface MetaValue
getMetaType
in interface TableValue
public MetaValue[] calculateIndex(CompositeValue value)
TableValue
calculateIndex
in interface TableValue
value
- the value for which the index is calculated.
public void clear()
TableValue
clear
in interface TableValue
public boolean containsKey(MetaValue[] key)
TableValue
containsKey
in interface TableValue
key
- the value to check
public boolean containsValue(CompositeValue value)
TableValue
containsValue
in interface TableValue
value
- the value to check
public CompositeValue get(MetaValue[] key)
TableValue
get
in interface TableValue
key
- the index to retrieve
public boolean isEmpty()
TableValue
isEmpty
in interface TableValue
public Set<List<MetaValue>> keySet()
TableValue
keySet
in interface TableValue
public void put(CompositeValue value)
TableValue
put
in interface TableValue
value
- the value to addpublic void putAll(CompositeValue[] values)
TableValue
putAll
in interface TableValue
values
- the values to addpublic CompositeValue remove(MetaValue[] key)
TableValue
remove
in interface TableValue
key
- the index of the value to remove
public int size()
TableValue
size
in interface TableValue
public Collection<CompositeValue> values()
TableValue
values
in interface TableValue
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public TableValueSupport clone()
MetaValue
clone
in interface MetaValue
clone
in class AbstractMetaValue
|
JBoss Managed Parent POM 2.1.1.SP2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |