T - the value typepublic abstract class Allocator<T> extends Object
PoolableObject and inserted into the Pool for access| Constructor and Description |
|---|
Allocator() |
| Modifier and Type | Method and Description |
|---|---|
abstract T |
allocate() |
void |
allocateForReuse(T object)
Reinitialize an object so it is ready to be claimed.
|
void |
deallocate(T object)
Clean up an object no longer needed by the pool.
|
void |
deallocateForReuse(T object)
Uninitialize an instance which has been released back to the pool, until it is claimed again.
|
@NotNull public abstract T allocate()
public void deallocateForReuse(T object)
public void allocateForReuse(T object)
public void deallocate(T object)
Copyright © 2019–2024. All rights reserved.