Package org.epics.pvdata.pv
Interface PVArray
-
- All Superinterfaces:
PVField,Serializable,SerializableArray
- All Known Subinterfaces:
PVBooleanArray,PVByteArray,PVDoubleArray,PVFloatArray,PVIntArray,PVLongArray,PVNumberArray,PVScalarArray,PVShortArray,PVStringArray,PVStructureArray,PVUByteArray,PVUIntArray,PVULongArray,PVUnionArray,PVUShortArray
- All Known Implementing Classes:
AbstractPVArray,AbstractPVComplexArray,AbstractPVScalarArray,BasePVBooleanArray,BasePVByteArray,BasePVDoubleArray,BasePVFloatArray,BasePVIntArray,BasePVLongArray,BasePVShortArray,BasePVStringArray,BasePVStructureArray,BasePVUByteArray,BasePVUIntArray,BasePVULongArray,BasePVUnionArray,BasePVUShortArray
public interface PVArray extends PVField, SerializableArray
Base interface for array data. Each PVType has an array interface that extends PVArray.- Author:
- mrk
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ArraygetArray()Get the Array introspection interface.intgetCapacity()Get the current capacity of the array, that is, the allocated number of elements.intgetLength()Get the current length of the array.booleanisCapacityMutable()Can the capacity be changed?voidsetCapacity(int length)Set the capacity.voidsetCapacityMutable(boolean isMutable)Set capacityMutable.voidsetLength(int length)Set the length of the array.-
Methods inherited from interface org.epics.pvdata.pv.PVField
getField, getFieldName, getFieldOffset, getFullName, getNextFieldOffset, getNumberFields, getParent, isImmutable, postPut, setImmutable, setPostHandler, toString, toString, toString
-
Methods inherited from interface org.epics.pvdata.pv.Serializable
deserialize, serialize
-
Methods inherited from interface org.epics.pvdata.pv.SerializableArray
serialize
-
-
-
-
Method Detail
-
getArray
Array getArray()
Get the Array introspection interface.- Returns:
- the introspection interface
-
getLength
int getLength()
Get the current length of the array.- Returns:
- the current length of the array
-
setLength
void setLength(int length)
Set the length of the array.- Parameters:
length- the new length of the array- Throws:
IllegalStateException- if the field is not mutable
-
getCapacity
int getCapacity()
Get the current capacity of the array, that is, the allocated number of elements.- Returns:
- the capacity
-
setCapacity
void setCapacity(int length)
Set the capacity.- Parameters:
length- the new capacity for the array- Throws:
IllegalStateException- if the capacity can't be changed
-
isCapacityMutable
boolean isCapacityMutable()
Can the capacity be changed?- Returns:
- whether it can be modified
-
setCapacityMutable
void setCapacityMutable(boolean isMutable)
Set capacityMutable.- Parameters:
isMutable- the new value for capacityMutable
-
-