public final class HessianFreeList<T> extends Object
The free list is bounded. Freeing an object when the list is full will do nothing.
| 构造器和说明 |
|---|
HessianFreeList(int size)
Create a new free list.
|
public HessianFreeList(int size)
initialSize - maximum number of free objects to store.public T allocate()
public boolean free(T obj)
obj - the object to be freed.public boolean allowFree(T obj)
public void freeCareful(T obj)
obj - the object to be freed.public boolean checkDuplicate(T obj)
Copyright © 2011–2024 The Apache Software Foundation. All rights reserved.