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