public interface ITestDataElementList
ITestDataList
interface to encapsulate the ordered
set of generic elements that make up the desired list. This interface is not typically
used directly, but instead is a shared implementation of a collection of generic elements
without specific higher-level control attributes. When used relative to the ITestDataList
interface, appropriate comparison attributes are available to
control use of the list.Modifier and Type | Method and Description |
---|---|
void |
add(ITestDataElement element)
Appends an element to the end of the list.
|
void |
add(ITestDataElement element,
int atIndex)
Inserts the specified element at the specified position in this list.
|
ITestDataElement |
getElement(int index)
Returns the
ITestDataElement at the specified
index. |
java.util.Vector |
getElements()
Returns an ordered vector of
ITestDataElement
objects. |
int |
getLength()
Returns the number of elements that exist in the
associated list.
|
void |
remove(int atIndex)
Removes the element at the specified index from the
list.
|
void |
removeAll()
Removes all elements in the list.
|
int getLength()
ITestDataElement getElement(int index)
ITestDataElement
at the specified
index. The index is a zero-based index that must consist of less than
the number of elements in the list.index
- the zero-based index of the desired elementvoid add(ITestDataElement element, int atIndex)
element
- the element to add to the listatIndex
- the index of the element after being added to
the listvoid add(ITestDataElement element)
element
- the element to add to the listvoid remove(int atIndex)
atIndex
- the zero-based index of the desired elementvoid removeAll()
java.util.Vector getElements()
ITestDataElement
objects.