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