public abstract class AbstractPVArray extends AbstractPVField implements PVArray
Modifier and Type | Field and Description |
---|---|
protected int |
capacity
For use by derived classes.
|
protected boolean |
capacityMutable
For use by derived classes.
|
protected int |
length
For use by derived classes.
|
convert
Modifier | Constructor and Description |
---|---|
protected |
AbstractPVArray(Field field)
Constructor that derived classes must call.
|
Modifier and Type | Method and Description |
---|---|
int |
getCapacity()
Get the current capacity of the array,
i.e.
|
int |
getLength()
Get the current length of the array.
|
boolean |
isCapacityMutable()
Can the capacity be changed?
|
void |
serialize(ByteBuffer buffer,
SerializableControl flusher)
Serialize field into given buffer.
|
abstract void |
setCapacity(int capacity)
Set the capacity.
|
void |
setCapacityMutable(boolean isMutable)
Set capacityMutable.
|
void |
setImmutable()
Set the field to be immutable, i.
|
void |
setLength(int len)
Set the length of the array.
|
changeField, getField, getFieldName, getFieldOffset, getNextFieldOffset, getNumberFields, getParent, getPVAuxInfo, getRequesterName, isImmutable, message, postPut, renameField, setData, setPostHandler, setRequester, toString, toString, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getField, getFieldName, getFieldOffset, getNextFieldOffset, getNumberFields, getParent, getPVAuxInfo, isImmutable, postPut, renameField, setPostHandler, setRequester, toString, toString, toString
getRequesterName, message
serialize
deserialize
protected int length
protected int capacity
protected boolean capacityMutable
protected AbstractPVArray(Field field)
field
- The reflection interface.public abstract void setCapacity(int capacity)
PVArray
setCapacity
in interface PVArray
capacity
- The new capacity for the array.public void setImmutable()
PVField
setImmutable
in interface PVField
setImmutable
in class AbstractPVField
public boolean isCapacityMutable()
PVArray
isCapacityMutable
in interface PVArray
public void setCapacityMutable(boolean isMutable)
PVArray
setCapacityMutable
in interface PVArray
isMutable
- New value for capacityMutable.public int getCapacity()
PVArray
getCapacity
in interface PVArray
public int getLength()
PVArray
public void setLength(int len)
PVArray
public void serialize(ByteBuffer buffer, SerializableControl flusher)
Serializable
serialize
in interface Serializable
buffer
- serialization buffer.flusher
- flush interface.Copyright © 2014. All Rights Reserved.