public interface IListDataAdapter<T>
T
represents the type of object we are
interested in the list.Modifier and Type | Method and Description |
---|---|
void |
add(int anIndex,
T newData)
Insert new value as new Item in the Vector.
|
T |
get(int anIndex)
If row data is available, return the array element value at the index
specified by
anIndex . |
T |
remove(int anIndex)
Removes the Item at the specified index.
|
T |
set(int anIndex,
T newData)
Updates the item data at the given index
anIndex . |
int |
size() |
void add(int anIndex, T newData)
anIndex
- An index at which the new value is inserted.newData
- The value for the new Item.T get(int anIndex)
anIndex
.T remove(int anIndex)
anIndex
- An integer index value. Must be valid.T set(int anIndex, T newData)
anIndex
.anIndex
- The index at which the new item data is to be set. Should be
valid value - between 0 and and #getRowCount()
.newData
- The new value of the item to be set. Cannot be null.java.lang.NullPointerException
- if the passed in value is nullint size()