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