|
Préférences
Moteurs de recherche
|
||||||||||||||||
JavaTM 2 Platform Std. Ed. v1.5.0
org.omg.CORBA
|
Constructor Summary | |
---|---|
ContextList()
|
Method Summary | |
---|---|
abstract void |
add(String ctx)
Adds a String object to this ContextList
object. |
abstract int |
count()
Returns the number of String objects in this
ContextList object. |
abstract String |
item(int index)
Returns the String object at the given index. |
abstract void |
remove(int index)
Removes the String object at the given index. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContextList()
Method Detail |
---|
public abstract int count()
String
objects in this
ContextList
object.
int
representing the number of
String
s in this ContextList
objectpublic abstract void add(String ctx)
String
object to this ContextList
object.
ctx
- the String
object to be addedpublic abstract String item(int index) throws Bounds
String
object at the given index.
index
- the index of the string desired, with 0 being the
index of the first string
Bounds
- if the index is greater than
or equal to the number of strings in this
ContextList
objectpublic abstract void remove(int index) throws Bounds
String
object at the given index. Note that
the indices of all strings following the one removed are
shifted down by one.
index
- the index of the String
object to be removed,
with 0 designating the first string
Bounds
- if the index is greater than
or equal to the number of String
objects in
this ContextList
object