| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public CacheObject | Returns: the element or nullthe unique key of the element pos)Get an element from the cache if it is available. |
| public CacheObject | Returns: the element or nullthe unique key of the element pos)Get an element in the cache if it is available. |
| public ArrayList | |
| public int | |
| public int | |
| public void | |
| public boolean | Returns: true if the key was in the cachethe unique key of the element pos)Remove an object from the cache. |
| public void | |
| public CacheObject | Returns: the elementthe unique key of the element pos, CacheObject the element record)Update an element in the cache. |
| clear | back to summary |
|---|---|
| public void clear() Clear the cache. | |
| find | back to summary |
|---|---|
| public CacheObject find(int pos) Get an element from the cache if it is available. This will not move the item to the front of the list.
| |
| get | back to summary |
|---|---|
| public CacheObject get(int pos) Get an element in the cache if it is available. This will move the item to the front of the list.
| |
| getAllChanged | back to summary |
|---|---|
| public ArrayList Get all objects in the cache that have been changed.
| |
| getMaxMemory | back to summary |
|---|---|
| public int getMaxMemory() Get the maximum memory to be used.
| |
| getMemory | back to summary |
|---|---|
| public int getMemory() Get the used size in KB.
| |
| put | back to summary |
|---|---|
| public void put(CacheObject r) Add an element to the cache. Other items may fall out of the cache because of this. It is not allowed to add the same record twice.
| |
| remove | back to summary |
|---|---|
| public boolean remove(int pos) Remove an object from the cache.
| |
| setMaxMemory | back to summary |
|---|---|
| public void setMaxMemory(int size) Set the maximum memory to be used by this cache.
| |
| update | back to summary |
|---|---|
| public CacheObject update(int pos, CacheObject record) Update an element in the cache. This will move the item to the front of the list.
| |