| Modifier and Type | Field and Description |
|---|---|
| private int | |
| pack-priv static final float | DEFAULT_LOAD_FACTOR
The load factor used when none specified in constructor.
|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected boolean | removeEldestEntry(Map.
The least recently inserted entry in the map, or if
this is an access-ordered map, the least recently accessed
entry. This is the entry that will be removed if this
method returns eldesttrue. If the map was empty prior
to the put or putAll invocation resulting
in this invocation, this will be the entry that was just
inserted; in other words, if the map contains a single
entry, the eldest entry is also the newest.Overrides java. removeEldestEntry() should be overridden by the user, otherwise it will not remove the oldest object from the Map. |
| capacity | back to summary |
|---|---|
| private int capacity | |
| DEFAULT_LOAD_FACTOR | back to summary |
|---|---|
| pack-priv static final float DEFAULT_LOAD_FACTOR Hides java. The load factor used when none specified in constructor. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| CacheMap | back to summary |
|---|---|
| public CacheMap(int capacity) | |
| removeEldestEntry | back to summary |
|---|---|
| protected boolean removeEldestEntry(Map. Overrides java. removeEldestEntry() should be overridden by the user, otherwise it will not remove the oldest object from the Map.
| |