public class ConcurrentBoundedList<E> extends AbstractList<E> implements Serializable, BoundedCollection<E>
| 限定符和类型 | 字段和说明 |
|---|---|
private List<E> |
delegate |
private Queue<E> |
keys |
private int |
maxSize |
private static long |
serialVersionUID |
modCount| 构造器和说明 |
|---|
ConcurrentBoundedList(int maxSize) |
ConcurrentBoundedList(List<E> delegate,
int maxSize) |
ConcurrentBoundedList(List<E> delegate,
int maxSize,
Queue<E> keys) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
add(E e) |
void |
add(int index,
E element) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
private void |
ensureCapacity(E e) |
E |
get(int index) |
Collection<E> |
getDelegate() |
int |
indexOf(Object o) |
int |
lastIndexOf(Object o) |
E |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
E |
set(int index,
E element) |
int |
size() |
List<E> |
subList(int fromIndex,
int toIndex) |
addAll, equals, hashCode, iterator, listIterator, listIterator, removeRangeonEvictionaddAll, equals, hashCode, isEmpty, iterator, parallelStream, removeIf, spliterator, stream, toArray, toArrayaddAll, isEmpty, replaceAll, sort, spliterator, toArray, toArrayprivate static final long serialVersionUID
private final int maxSize
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 boolean remove(Object o)
remove 在接口中 Collection<E>remove 在接口中 List<E>remove 在类中 AbstractCollection<E>public boolean containsAll(Collection<?> c)
containsAll 在接口中 Collection<E>containsAll 在接口中 List<E>containsAll 在类中 AbstractCollection<E>public boolean removeAll(Collection<?> c)
removeAll 在接口中 Collection<E>removeAll 在接口中 List<E>removeAll 在类中 AbstractCollection<E>public boolean retainAll(Collection<?> c)
retainAll 在接口中 Collection<E>retainAll 在接口中 List<E>retainAll 在类中 AbstractCollection<E>public int lastIndexOf(Object o)
lastIndexOf 在接口中 List<E>lastIndexOf 在类中 AbstractList<E>public void clear()
clear 在接口中 Collection<E>clear 在接口中 List<E>clear 在类中 AbstractList<E>public int size()
size 在接口中 Collection<E>size 在接口中 List<E>size 在类中 AbstractCollection<E>public Collection<E> getDelegate()
getDelegate 在接口中 BoundedCollection<E>private void ensureCapacity(E e)
Copyright © 2022. All rights reserved.