T - public class PriorityLimitSizeQueue<T> extends Object implements Queue<T>
| 构造器和说明 |
|---|
PriorityLimitSizeQueue(int limit) |
PriorityLimitSizeQueue(int limit,
Comparator<T> comparator) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
add(T e) |
boolean |
addAll(Collection<? extends T> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
T |
element() |
boolean |
isEmpty() |
Iterator<T> |
iterator() |
boolean |
offer(T e) |
T |
peek() |
T |
poll() |
T |
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 PriorityLimitSizeQueue(int limit)
public PriorityLimitSizeQueue(int limit,
Comparator<T> comparator)
public int size()
size 在接口中 Collection<T>public boolean isEmpty()
isEmpty 在接口中 Collection<T>public boolean contains(Object o)
contains 在接口中 Collection<T>public Object[] toArray()
toArray 在接口中 Collection<T>public <T> T[] toArray(T[] a)
toArray 在接口中 Collection<T>public boolean remove(Object o)
remove 在接口中 Collection<T>public boolean containsAll(Collection<?> c)
containsAll 在接口中 Collection<T>public boolean addAll(Collection<? extends T> c)
addAll 在接口中 Collection<T>public boolean removeAll(Collection<?> c)
removeAll 在接口中 Collection<T>public boolean retainAll(Collection<?> c)
retainAll 在接口中 Collection<T>public void clear()
clear 在接口中 Collection<T>Copyright © 2023. All rights reserved.