public class BoundedQueue<E> extends Object implements Queue<E>
| 构造器和说明 |
|---|
BoundedQueue(int capacity) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
add(E e) |
boolean |
addAll(Collection<? extends E> c) |
boolean |
addAll(E[] c,
int offset,
int len) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
E |
element() |
boolean |
isEmpty() |
boolean |
isFull() |
Iterator<E> |
iterator() |
boolean |
offer(E e) |
E |
peek() |
E |
poll() |
E |
pop() |
int |
remainingCapacity() |
E |
remove() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCode, parallelStream, removeIf, spliterator, streampublic int size()
size 在接口中 Collection<E>public boolean isEmpty()
isEmpty 在接口中 Collection<E>public final boolean isFull()
public boolean contains(Object o)
contains 在接口中 Collection<E>public Object[] toArray()
toArray 在接口中 Collection<E>public <T> T[] toArray(T[] a)
toArray 在接口中 Collection<E>public boolean containsAll(Collection<?> c)
containsAll 在接口中 Collection<E>public boolean addAll(Collection<? extends E> c)
addAll 在接口中 Collection<E>public boolean addAll(E[] c, int offset, int len)
public boolean removeAll(Collection<?> c)
removeAll 在接口中 Collection<E>public boolean retainAll(Collection<?> c)
retainAll 在接口中 Collection<E>public void clear()
clear 在接口中 Collection<E>public boolean remove(Object o)
remove 在接口中 Collection<E>public int remainingCapacity()
public E pop()
Copyright © 2019 Baidu, Inc.. All rights reserved.