public class LruHashMap extends LinkedHashMap
HashMapです。AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected static int |
DEFAULT_INITIAL_CAPACITY
デフォルトの初期容量です。
|
protected static float |
DEFAULT_LOAD_FACTOR
デフォルトのロードファクタです。
|
protected int |
limitSize
上限サイズです。
|
| コンストラクタと説明 |
|---|
LruHashMap(int limitSize)
LruHashMapを作成します。 |
LruHashMap(int limitSize,
int initialCapacity,
float loadFactor)
LruHashMapを作成します。 |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
int |
getLimitSize()
上限サイズを返します。
|
protected boolean |
removeEldestEntry(Map.Entry entry) |
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, replaceAll, valuesclone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeequals, hashCode, toStringcompute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeprotected static final int DEFAULT_INITIAL_CAPACITY
protected static final float DEFAULT_LOAD_FACTOR
protected int limitSize
public LruHashMap(int limitSize)
LruHashMapを作成します。limitSize - public LruHashMap(int limitSize,
int initialCapacity,
float loadFactor)
LruHashMapを作成します。limitSize - initialCapacity - loadFactor - public int getLimitSize()
protected boolean removeEldestEntry(Map.Entry entry)
removeEldestEntry クラス内 LinkedHashMapCopyright © 2015 The DBFlute Project. All rights reserved.