public class ArrayValueSupport extends AbstractMetaValue implements ArrayValue
| Constructor and Description |
|---|
ArrayValueSupport(ArrayMetaType metaType)
Create a new ArrayValueSupport.
|
ArrayValueSupport(ArrayMetaType metaType,
Object value)
Create a new ArrayValueSupport.
|
| Modifier and Type | Method and Description |
|---|---|
MetaValue |
clone()
Clone the meta value
|
protected String |
deepToString() |
boolean |
equals(Object obj) |
int |
getLength()
Get the length of the array.
|
ArrayMetaType |
getMetaType()
Get the metatype for this value
|
Object |
getValue()
Get the value.
|
Object |
getValue(int index)
Get the array element at index.
|
int |
hashCode() |
Iterator<Object> |
iterator() |
void |
setValue(Object value)
Set the value.
|
String |
toString() |
public ArrayValueSupport(ArrayMetaType metaType)
metaType - the array meta typeIllegalArgumentException - for a null array MetaTypepublic ArrayValueSupport(ArrayMetaType metaType, Object value)
metaType - the array meta typevalue - the valueIllegalArgumentException - for a null array MetaTypepublic ArrayMetaType getMetaType()
MetaValuegetMetaType in interface ArrayValuegetMetaType in interface MetaValuepublic Object getValue()
getValue in interface ArrayValueArrayValue.getValue(int)public int getLength()
getLength in interface ArrayValuepublic Object getValue(int index)
ArrayValuegetValue in interface ArrayValueindex - - index into the array.public void setValue(Object value)
value - the value.public MetaValue clone()
MetaValueclone in interface MetaValueclone in class AbstractMetaValueprotected String deepToString()
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.