Class LRUSet<ELEMENTTYPE>

java.lang.Object
java.util.AbstractCollection<ELEMENTTYPE>
java.util.AbstractSet<ELEMENTTYPE>
com.helger.commons.collection.map.LRUSet<ELEMENTTYPE>
Type Parameters:
ELEMENTTYPE - Element type
All Implemented Interfaces:
ICommonsCollection<ELEMENTTYPE>, ICommonsIterable<ELEMENTTYPE>, ICommonsOrderedSet<ELEMENTTYPE>, ICommonsSet<ELEMENTTYPE>, ICloneable<ICommonsSet<ELEMENTTYPE>>, IHasSize, Iterable<ELEMENTTYPE>, Collection<ELEMENTTYPE>, Set<ELEMENTTYPE>

@NotThreadSafe @UseDirectEqualsAndHashCode public class LRUSet<ELEMENTTYPE> extends AbstractSet<ELEMENTTYPE> implements ICommonsOrderedSet<ELEMENTTYPE>
A special ordered set, that has an upper limit of contained elements. It is therefore a "Last Recently Used" cache.
The underlying data structure is a LRUMap map.
Author:
Philip Helger