public class CollectionValueSupport extends AbstractMetaValue implements CollectionValue
Constructor and Description |
---|
CollectionValueSupport(CollectionMetaType metaType)
Create a new CollectionValueSupport.
|
CollectionValueSupport(CollectionMetaType metaType,
MetaValue[] elements)
Create a new ArrayValueSupport.
|
Modifier and Type | Method and Description |
---|---|
MetaValue |
clone()
Clone the meta value
|
boolean |
equals(Object obj) |
MetaValue[] |
getElements()
Get the value.
|
CollectionMetaType |
getMetaType()
Get the metatype for this value
|
int |
getSize()
Get the size of the collection.
|
int |
hashCode() |
Iterator<MetaValue> |
iterator() |
void |
setElements(MetaValue[] elements)
Set the value.
|
String |
toString() |
public CollectionValueSupport(CollectionMetaType metaType)
metaType
- the collection meta typeIllegalArgumentException
- for a null array MetaTypepublic CollectionValueSupport(CollectionMetaType metaType, MetaValue[] elements)
metaType
- the collection meta typeelements
- the elementsIllegalArgumentException
- for a null array MetaTypepublic CollectionMetaType getMetaType()
MetaValue
getMetaType
in interface CollectionValue
getMetaType
in interface MetaValue
public MetaValue[] getElements()
getElements
in interface CollectionValue
public int getSize()
getSize
in interface CollectionValue
public void setElements(MetaValue[] elements)
elements
- the elements.Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.