public class SpinAllocator<T>
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
SpinAllocator.ICreator<T> |
static interface |
SpinAllocator.IDisposer<T> |
| Constructor and Description |
|---|
SpinAllocator(SpinAllocator.ICreator<T> creator,
@Nullable SpinAllocator.IDisposer<T> disposer) |
SpinAllocator(SpinAllocator.ICreator<T> creator,
SpinAllocator.IDisposer<T> disposer,
int maxAllocations) |
| Modifier and Type | Method and Description |
|---|---|
T |
alloc() |
boolean |
dispose(T instance) |
public SpinAllocator(SpinAllocator.ICreator<T> creator, @Nullable @Nullable SpinAllocator.IDisposer<T> disposer)
public SpinAllocator(SpinAllocator.ICreator<T> creator, SpinAllocator.IDisposer<T> disposer, int maxAllocations)