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()
MetaValue
getMetaType
in interface ArrayValue
getMetaType
in interface MetaValue
public Object getValue()
getValue
in interface ArrayValue
ArrayValue.getValue(int)
public int getLength()
getLength
in interface ArrayValue
public Object getValue(int index)
ArrayValue
getValue
in interface ArrayValue
index
- - index into the array.public void setValue(Object value)
value
- the value.public MetaValue clone()
MetaValue
clone
in interface MetaValue
clone
in class AbstractMetaValue
protected String deepToString()
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.