public class LruList<E> extends AbstractList<E> implements List<E>, Serializable, BoundedCollection<E>
| 限定符和类型 | 字段和说明 |
|---|---|
private static Map<Integer,AtomicInteger> |
counter |
private List<E> |
delegate |
private int |
index |
private Map<Integer,E> |
keys |
private static long |
serialVersionUID |
modCount| 构造器和说明 |
|---|
LruList() |
LruList(int maxSize) |
LruList(int maxSize,
LruMapSupplier<Integer,E> supplier) |
LruList(List<E> delegate,
int maxSize) |
LruList(List<E> delegate,
int maxSize,
LruMapSupplier<Integer,E> supplier) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
add(E e) |
void |
add(int index,
E e) |
void |
clear() |
boolean |
contains(Object o) |
E |
get(int index) |
Collection<E> |
getDelegate() |
Iterator<E> |
iterator() |
ListIterator<E> |
listIterator(int index) |
static void |
main(String[] args) |
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, toArrayonEvictionparallelStream, removeIf, streamprivate static final long serialVersionUID
private int index
private static final Map<Integer,AtomicInteger> counter
public LruList()
public LruList(int maxSize)
public LruList(int maxSize,
LruMapSupplier<Integer,E> supplier)
public LruList(List<E> delegate, int maxSize, LruMapSupplier<Integer,E> supplier)
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 Collection<E> getDelegate()
getDelegate 在接口中 BoundedCollection<E>public String toString()
toString 在类中 AbstractCollection<E>public static void main(String[] args)
Copyright © 2022. All rights reserved.