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