- 所有已实现的接口:
- java.io.Serializable, java.lang.Iterable<T>, java.util.Collection<T>, java.util.Queue<T>
public class BoundedList<T>
extends java.util.concurrent.ConcurrentLinkedQueue<T>
A bounded subclass of LinkedList, oldest elements are removed once max capacity is exceeded. Note that this
class is not synchronized (like LinkedList). Don't use this for high performance, as size() has a linear cost. But
in most scenarios, this class is used for maintaining a history, e.g. of digests or views, so perf is not critical.
- 作者:
- Bela Ban Nov 20, 2003
- 另请参阅:
- 序列化表格