|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.cmu.cs.able.gaugeInfrastructure.util.StringObjectVector
Constructor Summary | |
StringObjectVector()
|
Method Summary | |
void |
addElement(edu.cmu.cs.able.gaugeInfrastructure.util.StringObject sp)
Adds the specified component to the end of this vector, increasing its size by one. |
void |
addElement(java.lang.String name,
java.lang.Object value)
Adds the specified component to the end of this vector, increasing its size by one. |
edu.cmu.cs.able.gaugeInfrastructure.util.StringObject |
elementAt(int index)
Returns the component at the specified index. |
java.util.Enumeration |
elements()
|
java.lang.Object |
getValue(java.lang.String name)
Gets the value of a specified pair in this vector. |
boolean |
isEmpty()
Tests if this vector has no components. |
java.lang.String |
nameAt(int index)
Gets the name of a specified pair in this vector. |
void |
removeAllElements()
Removes all components from this vector and sets its size to zero. |
void |
removeElement(java.lang.String name)
Removes the first (lowest-indexed) occurrence of the argument from this vector. |
void |
removeElementAt(int index)
Removes the first (lowest-indexed) occurrence of the argument from this vector. |
void |
setValue(java.lang.String name,
java.lang.Object value)
Sets the value of a specified pair in this vector. |
int |
size()
Returns the number of components in this vector. |
java.lang.String |
toString()
Returns a string representation of this Vector, containing the String representation of each element. |
java.lang.Object |
valueAt(int index)
Gets the value of a specified pair in this vector. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public StringObjectVector()
Method Detail |
public int size()
public boolean isEmpty()
true
if and only if this vector has
no components, that is, its size is zero;
false
otherwise.public java.util.Enumeration elements()
public void addElement(java.lang.String name, java.lang.Object value)
name
- the name of the pair to be added.value
- the value of the pair to be added.public void addElement(edu.cmu.cs.able.gaugeInfrastructure.util.StringObject sp)
StringObject
- the pair to be added.public edu.cmu.cs.able.gaugeInfrastructure.util.StringObject elementAt(int index)
index
- an index into this vector.public void removeElementAt(int index)
index
- the index to be deleted.public void removeElement(java.lang.String name)
name
- the name of the pair to be deleted.public void removeAllElements()
public java.lang.Object getValue(java.lang.String name)
name
- name of the pair.public void setValue(java.lang.String name, java.lang.Object value)
name
- name of the pair.value
- value of the pair.public java.lang.String nameAt(int index)
index
- index of the pair.public java.lang.Object valueAt(int index)
index
- index of the pair.public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |