public class ExceptionListImpl extends ExceptionList
| Constructor and Description |
|---|
ExceptionListImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(TypeCode tc)
Adds a
TypeCode object describing an exception
to this ExceptionList object. |
int |
count()
Retrieves the number of
TypeCode objects in this
ExceptionList object. |
TypeCode |
item(int index)
Returns the
TypeCode object at the given index. |
void |
remove(int index)
Removes the
TypeCode object at the given index. |
public int count()
ExceptionListTypeCode objects in this
ExceptionList object.count in class ExceptionListTypeCode objects in this
ExceptionList objectpublic void add(TypeCode tc)
ExceptionListTypeCode object describing an exception
to this ExceptionList object.add in class ExceptionListtc - the TypeCode object to be addedpublic TypeCode item(int index) throws Bounds
ExceptionListTypeCode object at the given index. The first
item is at index 0.item in class ExceptionListindex - the index of the TypeCode object desired.
This must be an int between 0 and the
number of TypeCode objects
minus one, inclusive.TypeCode object at the given indexBounds - if the index given is greater than
or equal to the number of TypeCode objects
in this ExceptionList objectpublic void remove(int index)
throws Bounds
ExceptionListTypeCode object at the given index.
Note that the indices of all the TypeCoded objects
following the one deleted are shifted down by one.remove in class ExceptionListindex - the index of the TypeCode object to be
removed.
This must be an int between 0 and the
number of TypeCode objects
minus one, inclusive.Bounds - if the index is greater than
or equal to the number of TypeCode objects
in this ExceptionList objectCopyright © 2018 JBoss by Red Hat. All rights reserved.