public class CArrayQueue extends ArrayQueue<Character>
24+2*n(n为元素个数)=es
B=56+2*n+对齐填充
ArrayQueue.ArrayQueueIterator| 限定符和类型 | 字段和说明 |
|---|---|
protected char[] |
es |
capacity, DEFAULT_CAPACITY, head, size, tail| 限定符 | 构造器和说明 |
|---|---|
protected |
CArrayQueue(int capacity) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Character |
get(int i) |
char |
head() |
static CArrayQueue |
of() |
static CArrayQueue |
of(int capacity) |
void |
offer(char e) |
char |
poll() |
protected void |
resize(int capacity) |
protected void |
setNull(int i) |
char |
tail() |
afterOffer, afterPoll, beforeOffer, isEmpty, iterator, removeTail, sizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic static CArrayQueue of(int capacity)
public static CArrayQueue of()
protected final Character get(int i)
get 在类中 ArrayQueue<Character>protected final void resize(int capacity)
resize 在类中 ArrayQueue<Character>protected final void setNull(int i)
setNull 在类中 ArrayQueue<Character>public final void offer(char e)
public final char poll()
public final char head()
public final char tail()
Copyright © 2022. All rights reserved.