public abstract class ArrayQueue<E> extends Object implements Iterable<E>
| 限定符和类型 | 类和说明 |
|---|---|
class |
ArrayQueue.ArrayQueueIterator |
| 限定符和类型 | 字段和说明 |
|---|---|
protected int |
capacity |
protected static int |
DEFAULT_CAPACITY |
protected int |
head |
protected int |
size |
protected int |
tail |
| 限定符 | 构造器和说明 |
|---|---|
protected |
ArrayQueue(int capacity) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
afterOffer() |
protected void |
afterPoll() |
protected void |
beforeOffer() |
protected abstract E |
get(int i) |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
void |
removeTail() |
protected abstract void |
resize(int capacity) |
protected abstract void |
setNull(int i) |
int |
size() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorprotected static final int DEFAULT_CAPACITY
protected int capacity
protected int size
protected int tail
protected int head
protected abstract E get(int i)
public final int size()
public final boolean isEmpty()
protected final void beforeOffer()
protected abstract void resize(int capacity)
protected final void afterOffer()
protected final void afterPoll()
protected abstract void setNull(int i)
public final void removeTail()
Copyright © 2022. All rights reserved.