This class is not synchronized, as any necessary synchronization will already take place in the client.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private Cache. | |
| private Cache. | |
| private final HashMap | |
| private final int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| public | Cache(int
the maximum cache size, must be between 0, inclusive, and
NOT_CACHED, exclusive. size)Create a cache. |
| Modifier and Type | Method and Description |
|---|---|
| public int |
| first | back to summary |
|---|---|
| private Cache. | |
| last | back to summary |
|---|---|
| private Cache. | |
| map | back to summary |
|---|---|
| private final HashMap<Object, Cache. | |
| maxSize | back to summary |
|---|---|
| private final int maxSize | |
| NOT_CACHED | back to summary |
|---|---|
| public static final int NOT_CACHED | |
| Cache | back to summary |
|---|---|
| public Cache(int size) Create a cache.
| |
| add | back to summary |
|---|---|
| public int add(boolean[] found, Object content) | |
| Modifier and Type | Field and Description |
|---|---|
| public Object | |
| public int | |
| public Cache. | |
| public Cache. |
| Access | Constructor and Description |
|---|---|
| public |
| content | back to summary |
|---|---|
| public Object content | |
| index | back to summary |
|---|---|
| public int index | |
| next | back to summary |
|---|---|
| public Cache. | |
| prev | back to summary |
|---|---|
| public Cache. | |