public class LruList<E> extends AbstractList<E> implements List<E>, Serializable
| 限定符和类型 | 字段和说明 |
|---|---|
private List<E> |
delegate |
private AtomicInteger |
index |
private Map<Integer,E> |
keys |
private static long |
serialVersionUID |
modCount| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
add(E e) |
void |
add(int index,
E e) |
void |
clear() |
boolean |
contains(Object o) |
E |
get(int index) |
Iterator<E> |
iterator() |
ListIterator<E> |
listIterator(int index) |
protected void |
onEviction(E e) |
boolean |
remove(Object o) |
E |
set(int index,
E e) |
int |
size() |
String |
toString() |
addAll, equals, hashCode, indexOf, lastIndexOf, listIterator, remove, removeRange, subListaddAll, containsAll, isEmpty, removeAll, retainAll, toArray, toArrayaddAll, addAll, containsAll, equals, hashCode, indexOf, isEmpty, lastIndexOf, listIterator, remove, removeAll, replaceAll, retainAll, sort, spliterator, subList, toArray, toArrayparallelStream, removeIf, streamprivate static final long serialVersionUID
private final AtomicInteger index
public boolean add(E e)
add 在接口中 Collection<E>add 在接口中 List<E>add 在类中 AbstractList<E>public boolean contains(Object o)
contains 在接口中 Collection<E>contains 在接口中 List<E>contains 在类中 AbstractCollection<E>public void clear()
clear 在接口中 Collection<E>clear 在接口中 List<E>clear 在类中 AbstractList<E>public boolean remove(Object o)
remove 在接口中 Collection<E>remove 在接口中 List<E>remove 在类中 AbstractCollection<E>public int size()
size 在接口中 Collection<E>size 在接口中 List<E>size 在类中 AbstractCollection<E>public ListIterator<E> listIterator(int index)
listIterator 在接口中 List<E>listIterator 在类中 AbstractList<E>public String toString()
toString 在类中 AbstractCollection<E>protected void onEviction(E e)
Copyright © 2020. All rights reserved.