Package boofcv.struct.lists
Class RecycleStack<T>
java.lang.Object
boofcv.struct.lists.RecycleStack<T>
Thread safe stack for creating and recycling memory
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
RecycleStack
-
-
Method Details
-
purge
public void purge()Frees all memory referenced internally and starts from fresh -
pop
Returns an instance. If there are instances queued up internally one of those is returned. Otherwise a new instance is created.- Returns:
- object instance
-
recycle
Recycles the object for later use- Parameters:
object
- The object that's to be recycled
-