ELEMENT
- Element typepublic abstract class CacheElement<ELEMENT>
extends java.lang.Object
Cache
Modifier and Type | Field and Description |
---|---|
private java.lang.ref.SoftReference<ELEMENT> |
softReference
Hide reference
|
Constructor and Description |
---|
CacheElement()
Constructs CacheElement
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Remove the element
|
protected abstract ELEMENT |
createElement()
Create the element
|
ELEMENT |
getElement()
Obtain the element
|
private java.lang.ref.SoftReference<ELEMENT> softReference