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()
ExceptionList
TypeCode
objects in this
ExceptionList
object.count
in class ExceptionList
TypeCode
objects in this
ExceptionList
objectpublic void add(TypeCode tc)
ExceptionList
TypeCode
object describing an exception
to this ExceptionList
object.add
in class ExceptionList
tc
- the TypeCode
object to be addedpublic TypeCode item(int index) throws Bounds
ExceptionList
TypeCode
object at the given index. The first
item is at index 0.item
in class ExceptionList
index
- 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
ExceptionList
TypeCode
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 ExceptionList
index
- 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.