-
Method Summary
Modifier and Type |
Method |
Description |
void |
destroy(T value) |
Destroy the data.
|
T |
newInstance() |
Create a new empty instance of the given size.
|
void |
recycle(T value) |
Recycle the data.
|
-
Method Details
-
newInstance
Create a new empty instance of the given size.
-
recycle
Recycle the data. This operation is called when the data structure is released.
-
destroy
Destroy the data. This operation allows the data structure to release any internal resources before GC.