|
|||||||||
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.StringPairVector
Constructor Summary | |
StringPairVector()
|
Method Summary | |
void |
addElement(edu.cmu.cs.able.gaugeInfrastructure.util.StringPair sp)
Adds the specified component to the end of this vector, increasing its size by one. |
void |
addElement(java.lang.String name,
java.lang.String value)
Adds the specified component to the end of this vector, increasing its size by one. |
void |
copyInto(StringPairVector spv)
Copies the values contained in this into the StringPairVector passed in. |
edu.cmu.cs.able.gaugeInfrastructure.util.StringPair |
elementAt(int index)
Returns the component at the specified index. |
java.util.Enumeration |
elements()
returns all the elements as an Enumeration |
boolean |
equals(java.lang.Object comp)
|
java.lang.String |
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 |
removeElementAt(int index)
Removes the first (lowest-indexed) occurrence of the argument from this vector. |
void |
setValue(int index,
java.lang.String value)
Sets the value of a specified pair in this vector. |
void |
setValue(java.lang.String name,
java.lang.String 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.String |
valueAt(int index)
Gets the value of a specified pair in this vector. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public StringPairVector()
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.String 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.StringPair sp)
sp
- The element to addpublic edu.cmu.cs.able.gaugeInfrastructure.util.StringPair elementAt(int index)
index
- an index into this vector.public void removeElementAt(int index)
index
- the index to be deleted.public void removeAllElements()
public java.lang.String getValue(java.lang.String name)
name
- name of the pair.public void setValue(java.lang.String name, java.lang.String value)
name
- name of the pair.value
- value of the pair.public void setValue(int index, java.lang.String value)
index
- index of the pair.value
- value of the pair.public java.lang.String nameAt(int index)
index
- index of the pair.public java.lang.String valueAt(int index)
index
- index of the pair.public void copyInto(StringPairVector spv)
spv
- The StringPairVector to copy elements intopublic java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object comp)
equals
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |