public final class CatchTable extends FixedSizeList implements java.lang.Comparable<CatchTable>
CatchHandlerList.| Modifier and Type | Class and Description |
|---|---|
static class |
CatchTable.Entry
Entry in a catch list.
|
| Modifier and Type | Field and Description |
|---|---|
static CatchTable |
EMPTY
non-null; empty instance |
| Constructor and Description |
|---|
CatchTable(int size)
Constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(CatchTable other) |
CatchTable.Entry |
get(int n)
Gets the element at the given index.
|
void |
set(int n,
CatchTable.Entry entry)
Sets the entry at the given index.
|
equals, get0, getOrNull0, hashCode, set0, shrinkToFit, size, toHuman, toHuman, toString, toStringisImmutable, isMutable, setImmutable, throwIfImmutable, throwIfMutablepublic static final CatchTable EMPTY
non-null; empty instancepublic CatchTable(int size)
null.size - >= 0; the size of the tablepublic CatchTable.Entry get(int n)
NullPointerException.n - >= 0, < size(); which indexnon-null; element at that indexpublic void set(int n,
CatchTable.Entry entry)
n - >= 0, < size(); which indexentry - non-null; the entry to set at npublic int compareTo(CatchTable other)
compareTo in interface java.lang.Comparable<CatchTable>Copyright © 2020. All Rights Reserved.