类 PriorityLimitSizeQueue<T>
- java.lang.Object
-
- org.sagacity.sqltoy.model.PriorityLimitSizeQueue<T>
-
- 类型参数:
T-
- 所有已实现的接口:
Iterable<T>,Collection<T>,Queue<T>
public class PriorityLimitSizeQueue<T> extends Object implements Queue<T>
固定长度优先队列模型- 作者:
- zhongxuchen
-
-
构造器概要
构造器 构造器 说明 PriorityLimitSizeQueue(int limit)PriorityLimitSizeQueue(int limit, Comparator<T> comparator)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanadd(T e)booleanaddAll(Collection<? extends T> c)voidclear()booleancontains(Object o)booleancontainsAll(Collection<?> c)Telement()booleanisEmpty()Iterator<T>iterator()booleanoffer(T e)Tpeek()Tpoll()Tremove()booleanremove(Object o)booleanremoveAll(Collection<?> c)booleanretainAll(Collection<?> c)intsize()Object[]toArray()<T> T[]toArray(T[] a)-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
-
-
-
构造器详细资料
-
PriorityLimitSizeQueue
public PriorityLimitSizeQueue(int limit)
-
PriorityLimitSizeQueue
public PriorityLimitSizeQueue(int limit, Comparator<T> comparator)
-
-
方法详细资料
-
size
public int size()
- 指定者:
size在接口中Collection<T>
-
isEmpty
public boolean isEmpty()
- 指定者:
isEmpty在接口中Collection<T>
-
contains
public boolean contains(Object o)
- 指定者:
contains在接口中Collection<T>
-
toArray
public Object[] toArray()
- 指定者:
toArray在接口中Collection<T>
-
toArray
public <T> T[] toArray(T[] a)
- 指定者:
toArray在接口中Collection<T>
-
remove
public boolean remove(Object o)
- 指定者:
remove在接口中Collection<T>
-
containsAll
public boolean containsAll(Collection<?> c)
- 指定者:
containsAll在接口中Collection<T>
-
addAll
public boolean addAll(Collection<? extends T> c)
- 指定者:
addAll在接口中Collection<T>
-
removeAll
public boolean removeAll(Collection<?> c)
- 指定者:
removeAll在接口中Collection<T>
-
retainAll
public boolean retainAll(Collection<?> c)
- 指定者:
retainAll在接口中Collection<T>
-
clear
public void clear()
- 指定者:
clear在接口中Collection<T>
-
-