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()
ContextList
String
objects in this
ContextList
object.count
in class ContextList
int
representing the number of
String
s in this ContextList
objectpublic void add(String ctxt)
ContextList
String
object to this ContextList
object.add
in class ContextList
ctxt
- the String
object to be addedpublic String item(int index) throws Bounds
ContextList
String
object at the given index.item
in class ContextList
index
- 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
ContextList
String
object at the given index. Note that
the indices of all strings following the one removed are
shifted down by one.remove
in class ContextList
index
- 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 © 2017 JBoss by Red Hat. All rights reserved.