public abstract class ArrayStack<E> extends Object implements Iterable<E>
| 限定符和类型 | 类和说明 |
|---|---|
class |
ArrayStack.ArrayStackIterator |
| 限定符和类型 | 字段和说明 |
|---|---|
protected int |
capacity |
protected static int |
DEFAULT_CAPACITY |
protected int |
size |
| 限定符 | 构造器和说明 |
|---|---|
protected |
ArrayStack(int capacity) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
afterPop() |
protected void |
beforePush() |
protected abstract E |
get(int i) |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
protected abstract void |
resize(int capacity) |
protected abstract void |
setNull(int i) |
int |
size() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorprotected static final int DEFAULT_CAPACITY
protected int capacity
protected int size
protected abstract E get(int i)
public final int size()
public final boolean isEmpty()
protected final void beforePush()
protected abstract void resize(int capacity)
protected final void afterPop()
protected abstract void setNull(int i)
Copyright © 2022. All rights reserved.