T - type of objectpublic class ObjectBank<T> extends Object implements IMemoryManageable, Closeable
IMemoryManageable.FreeMemoryLevel| Constructor and Description |
|---|
ObjectBank(int maxSize,
String description)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
free(T object)
Release an instance.
|
void |
freeMemory(IMemoryManageable.FreeMemoryLevel level)
Request to free some memory.
|
T |
get()
Get an instance.
|
String |
getDescription()
Desciption.
|
List<String> |
getItemsDescription()
Describe each item that can be freed.
|
public ObjectBank(int maxSize,
String description)
public void close()
close in interface Closeableclose in interface AutoCloseablepublic T get()
public void free(T object)
public String getDescription()
IMemoryManageablegetDescription in interface IMemoryManageablepublic List<String> getItemsDescription()
IMemoryManageablegetItemsDescription in interface IMemoryManageablepublic void freeMemory(IMemoryManageable.FreeMemoryLevel level)
IMemoryManageablefreeMemory in interface IMemoryManageableCopyright © 2019. All rights reserved.