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