public class TransientMemory extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ArrayList<Object> |
clearOnDeselect
List of
CLEAR_ON_DESELECT arrays |
protected ArrayList<Object> |
clearOnReset
List of
CLEAR_ON_RESET arrays |
| Constructor and Description |
|---|
TransientMemory() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clearOnDeselect()
Zero
CLEAR_ON_DESELECT buffers |
protected void |
clearOnReset()
Zero
CLEAR_ON_RESET and CLEAR_ON_DESELECT
buffers |
protected void |
forgetBuffers()
Perform
clearOnReset and forget all buffers |
byte |
isTransient(Object theObj) |
boolean[] |
makeBooleanArray(short length,
byte event) |
byte[] |
makeByteArray(int length,
byte event) |
Object |
makeGlobalArray(byte type,
short length) |
Object[] |
makeObjectArray(short length,
byte event) |
short[] |
makeShortArray(short length,
byte event) |
protected void |
storeArray(Object arrayRef,
byte event)
Store
arrayRef in memory depends by event type |
protected void |
zero(List<Object> list)
Zero all arrays in list
|
public boolean[] makeBooleanArray(short length,
byte event)
length - the length of the arrayevent - the CLEAR_ON... event which causes the array elements to be clearedJCSystem.makeTransientBooleanArray(short, byte)public byte[] makeByteArray(int length,
byte event)
length - the length of the arrayevent - the CLEAR_ON... event which causes the array elements to be clearedJCSystem.makeTransientByteArray(short, byte)public short[] makeShortArray(short length,
byte event)
length - the length of the arrayevent - the CLEAR_ON... event which causes the array elements to be clearedJCSystem.makeTransientShortArray(short, byte)public Object[] makeObjectArray(short length, byte event)
length - the length of the arrayevent - the CLEAR_ON... event which causes the array elements to be clearedJCSystem.makeTransientObjectArray(short, byte)public Object makeGlobalArray(byte type, short length)
type - the array type - must be one of : ARRAY_TYPE_BOOLEAN, ARRAY_TYPE_BYTE, ARRAY_TYPE_SHORT, ARRAY_TYPE_INT, or ARRAY_TYPE_OBJECTlength - the length of the global transient arrayJCSystem.makeGlobalArray(byte,short)public byte isTransient(Object theObj)
theObj - the object being queriedNOT_A_TRANSIENT_OBJECT, CLEAR_ON_RESET, or CLEAR_ON_DESELECTJCSystem.isTransient(Object)protected void storeArray(Object arrayRef, byte event)
arrayRef in memory depends by event typearrayRef - array referenceevent - event typeprotected void clearOnDeselect()
CLEAR_ON_DESELECT buffersprotected void clearOnReset()
CLEAR_ON_RESET and CLEAR_ON_DESELECT
buffersprotected void forgetBuffers()
clearOnReset and forget all buffers