Package jetbrains.buildServer.util
Class SLRUMap<K,V>
- java.lang.Object
-
- jetbrains.buildServer.util.SLRUMap<K,V>
-
-
Field Summary
Fields Modifier and Type Field Description protected LinkedHashMap<K,V>
myProbationalQueue
protected LinkedHashMap<K,V>
myProtectedQueue
-
Constructor Summary
Constructors Constructor Description SLRUMap(int protectedQueueSize, int probationalQueueSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
boolean
containsKey(Object key)
boolean
containsValue(Object value)
Set<Map.Entry<K,V>>
entrySet()
V
get(Object key)
float
getHitRate()
boolean
isEmpty()
Set<K>
keySet()
V
put(K key, V value)
void
putAll(Map<? extends K,? extends V> m)
V
remove(Object key)
int
size()
Collection<V>
values()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Field Detail
-
myProtectedQueue
protected final LinkedHashMap<K,V> myProtectedQueue
-
myProbationalQueue
protected final LinkedHashMap<K,V> myProbationalQueue
-
-
Method Detail
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey
in interfaceMap<K,V>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue
in interfaceMap<K,V>
-
getHitRate
public float getHitRate()
-
-