T - type of the list elementspublic class EvictingBoundedList<T> extends Object implements Iterable<T>, Serializable
The list by itself is serializable, but a full list can only be serialized if the values are also serializable.
| 构造器和说明 |
|---|
EvictingBoundedList(EvictingBoundedList<T> other) |
EvictingBoundedList(int sizeLimit) |
EvictingBoundedList(int sizeLimit,
T defaultElement) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
add(T t) |
void |
clear() |
T |
get(int index) |
T |
getDefaultElement() |
int |
getSizeLimit() |
boolean |
isEmpty() |
Iterator<T> |
iterator() |
T |
set(int index,
T element) |
int |
size() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic EvictingBoundedList(int sizeLimit)
public EvictingBoundedList(EvictingBoundedList<T> other)
public EvictingBoundedList(int sizeLimit,
T defaultElement)
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.