Class LRUSet<T>
java.lang.Object
ghidra.util.datastruct.LRUMap<T,T>
ghidra.util.datastruct.LRUSet<T>
- Type Parameters:
T- the type of items in the set
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class LRUMap
clear, containsKey, containsValue, eldestEntryRemoved, entrySet, get, isEmpty, keySet, put, putAll, remove, removeEldestEntry, size, valuesMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
LRUSet
public LRUSet(int size) Constructs this set with the given size. As elements are added, the oldest elements (by access time) will fall off the bottom of the set.If you do not wish to have a set bounded by size, then you can override
LRUMap.removeEldestEntry(java.util.Map.Entry)to do nothing.- Parameters:
size- The size to which this set will be restricted.
-
-
Method Details
-
add
-
iterator
-
toString
-