public class ContextListImpl extends ContextList
| Constructor and Description |
|---|
ContextListImpl(ORB orb) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(String ctxt)
Adds a
String object to this ContextList
object. |
int |
count()
Returns the number of
String objects in this
ContextList object. |
String |
item(int index)
Returns the
String object at the given index. |
void |
remove(int index)
Removes the
String object at the given index. |
public ContextListImpl(ORB orb)
public int count()
ContextListString objects in this
ContextList object.count in class ContextListint representing the number of
Strings in this ContextList objectpublic void add(String ctxt)
ContextListString object to this ContextList
object.add in class ContextListctxt - the String object to be addedpublic String item(int index) throws Bounds
ContextListString object at the given index.item in class ContextListindex - the index of the string desired, with 0 being the
index of the first stringBounds - if the index is greater than
or equal to the number of strings in this
ContextList objectpublic void remove(int index)
throws Bounds
ContextListString object at the given index. Note that
the indices of all strings following the one removed are
shifted down by one.remove in class ContextListindex - the index of the String object to be removed,
with 0 designating the first stringBounds - if the index is greater than
or equal to the number of String objects in
this ContextList objectCopyright © 2018 JBoss by Red Hat. All rights reserved.