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