public class DArrayStack extends ArrayStack<Double>
24+8*n(n为元素个数)=es
B=48+8*n
ArrayStack.ArrayStackIterator| 限定符和类型 | 字段和说明 |
|---|---|
protected double[] |
es |
capacity, DEFAULT_CAPACITY, size| 限定符 | 构造器和说明 |
|---|---|
protected |
DArrayStack(int capacity) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Double |
get(int i) |
static DArrayStack |
of() |
static DArrayStack |
of(int capacity) |
double |
peek() |
double |
pop() |
void |
push(double e) |
protected void |
resize(int capacity) |
protected void |
setNull(int i) |
afterPop, beforePush, isEmpty, iterator, sizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic static DArrayStack of(int capacity)
public static DArrayStack of()
protected final Double get(int i)
get 在类中 ArrayStack<Double>protected final void resize(int capacity)
resize 在类中 ArrayStack<Double>protected final void setNull(int i)
setNull 在类中 ArrayStack<Double>public final void push(double e)
public final double pop()
public final double peek()
Copyright © 2022. All rights reserved.