public class IArrayStack extends ArrayStack<Integer>
24+4*n(n为元素个数)=es
B=48+4*n+对齐填充
ArrayStack.ArrayStackIterator| 限定符和类型 | 字段和说明 |
|---|---|
protected int[] |
es |
capacity, DEFAULT_CAPACITY, size| 限定符 | 构造器和说明 |
|---|---|
protected |
IArrayStack(int capacity) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Integer |
get(int i) |
static IArrayStack |
of() |
static IArrayStack |
of(int capacity) |
int |
peek() |
int |
pop() |
void |
push(int 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 IArrayStack of(int capacity)
public static IArrayStack of()
protected final Integer get(int i)
get 在类中 ArrayStack<Integer>protected final void resize(int capacity)
resize 在类中 ArrayStack<Integer>protected final void setNull(int i)
setNull 在类中 ArrayStack<Integer>public final void push(int e)
public final int pop()
public final int peek()
Copyright © 2022. All rights reserved.