|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.tinygroup.queue.impl.QueueImpl<E>
public class QueueImpl<E>
Created by IntelliJ IDEA. User: luoguo Date: 11-3-30 Time: 下午1:37 To change this template use File | Settings | File Templates.
| 字段摘要 |
|---|
| 从接口 org.tinygroup.queue.Queue 继承的字段 |
|---|
DEFAULT_QUEUE_SIZE |
| 构造方法摘要 | |
|---|---|
QueueImpl()
构造函数 |
|
QueueImpl(int size)
构造函数 |
|
QueueImpl(String name)
构造函数 |
|
QueueImpl(String name,
int size)
构造函数 |
|
| 方法摘要 | |
|---|---|
E |
element()
获取队列头元素 |
int |
getIdleSize()
获取空闲队列长度 |
String |
getName()
获取队列名称 |
int |
getSize()
获取队列长度 |
int |
getUsingSize()
获取已用队列长度 |
boolean |
isEmpty()
检查队列是否为空 |
boolean |
isFull()
检查队列是否为满 |
void |
offer(E o)
添加元素到队列中 |
E |
peek()
获取队列头元素 |
E |
poll()
元素出队,并删除 返回所删除的元素 |
E |
remove()
元素出队,并删除 返回所删除的元素 |
void |
setName(String name)
设置队列名称 |
int |
size()
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public QueueImpl()
public QueueImpl(String name)
name -
public QueueImpl(String name,
int size)
name - size - public QueueImpl(int size)
size - | 方法详细信息 |
|---|
public void offer(E o)
Queue<E> 中的 offero - public E poll()
Queue<E> 中的 pollpublic E remove()
Queue<E> 中的 removepublic E peek()
Queue<E> 中的 peekpublic E element()
Queue<E> 中的 elementpublic boolean isEmpty()
Queue<E> 中的 isEmptypublic boolean isFull()
Queue<E> 中的 isFullpublic void setName(String name)
name - public String getName()
QueueMonitor 中的 getNamepublic int getSize()
QueueMonitor 中的 getSizepublic int getUsingSize()
QueueMonitor 中的 getUsingSizepublic int getIdleSize()
QueueMonitor 中的 getIdleSizepublic int size()
Queue<E> 中的 size
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||