public class NameAndValueList
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
NameAndValueList() |
Modifier and Type | Method and Description |
---|---|
void |
addNameAndValue(int index,
NameAndValue vNameAndValue) |
void |
addNameAndValue(NameAndValue vNameAndValue) |
java.util.Enumeration<? extends NameAndValue> |
enumerateNameAndValue()
Method enumerateNameAndValue.
|
NameAndValue[] |
getNameAndValue()
Method getNameAndValue.Returns the contents of the
collection in an Array.
|
NameAndValue |
getNameAndValue(int index)
Method getNameAndValue.
|
int |
getNameAndValueCount()
Method getNameAndValueCount.
|
java.util.Iterator<? extends NameAndValue> |
iterateNameAndValue()
Method iterateNameAndValue.
|
void |
removeAllNameAndValue() |
boolean |
removeNameAndValue(NameAndValue vNameAndValue)
Method removeNameAndValue.
|
NameAndValue |
removeNameAndValueAt(int index)
Method removeNameAndValueAt.
|
void |
setNameAndValue(int index,
NameAndValue vNameAndValue) |
void |
setNameAndValue(NameAndValue[] vNameAndValueArray) |
public void addNameAndValue(NameAndValue vNameAndValue) throws java.lang.IndexOutOfBoundsException
vNameAndValue
- java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addNameAndValue(int index, NameAndValue vNameAndValue) throws java.lang.IndexOutOfBoundsException
index
- vNameAndValue
- java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic java.util.Enumeration<? extends NameAndValue> enumerateNameAndValue()
public NameAndValue getNameAndValue(int index) throws java.lang.IndexOutOfBoundsException
index
- java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic NameAndValue[] getNameAndValue()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public int getNameAndValueCount()
public java.util.Iterator<? extends NameAndValue> iterateNameAndValue()
public void removeAllNameAndValue()
public boolean removeNameAndValue(NameAndValue vNameAndValue)
vNameAndValue
- public NameAndValue removeNameAndValueAt(int index)
index
- public void setNameAndValue(int index, NameAndValue vNameAndValue) throws java.lang.IndexOutOfBoundsException
index
- vNameAndValue
- java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setNameAndValue(NameAndValue[] vNameAndValueArray)
vNameAndValueArray
-