public class LruQueue<E> extends AbstractQueue<E> implements Queue<E>, Serializable, BoundedCollection<E>
| 限定符和类型 | 字段和说明 |
|---|---|
private Queue<E> |
delegate |
private int |
index |
private Map<Integer,E> |
keys |
private static long |
serialVersionUID |
| 构造器和说明 |
|---|
LruQueue() |
LruQueue(int maxSize) |
LruQueue(int maxSize,
LruMapSupplier<Integer,E> supplier) |
LruQueue(Queue<E> delegate,
int maxSize) |
LruQueue(Queue<E> delegate,
int maxSize,
LruMapSupplier<Integer,E> supplier) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
contains(Object o) |
Collection<E> |
getDelegate() |
private int |
indexFor(Object o) |
Iterator<E> |
iterator() |
boolean |
offer(E e) |
E |
peek() |
E |
poll() |
boolean |
remove(Object o) |
int |
size() |
String |
toString() |
containsAll, isEmpty, removeAll, retainAll, toArray, toArrayclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitonEvictionaddAll, clear, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArrayprivate static final long serialVersionUID
private int index
public LruQueue()
public LruQueue(int maxSize)
public LruQueue(int maxSize,
LruMapSupplier<Integer,E> supplier)
public LruQueue(Queue<E> delegate, int maxSize, LruMapSupplier<Integer,E> supplier)
public boolean contains(Object o)
contains 在接口中 Collection<E>contains 在类中 AbstractCollection<E>public boolean remove(Object o)
remove 在接口中 Collection<E>remove 在类中 AbstractCollection<E>public Iterator<E> iterator()
iterator 在接口中 Iterable<E>iterator 在接口中 Collection<E>iterator 在类中 AbstractCollection<E>public int size()
size 在接口中 Collection<E>size 在类中 AbstractCollection<E>private int indexFor(Object o)
public Collection<E> getDelegate()
getDelegate 在接口中 BoundedCollection<E>public String toString()
toString 在类中 AbstractCollection<E>Copyright © 2022. All rights reserved.