public interface ITableDataAdapter<T>
Modifier and Type | Method and Description |
---|---|
int |
getLength() |
java.util.Map<java.lang.Object,T> |
getTupleAt(int anIndex)
If a tuple is available, return the tuple at the index specified by
anIndex . |
void |
setTupleAt(int anIndex,
java.util.Map<java.lang.Object,T> newData)
Updates the tuple data at the given index
anIndex . |
int getLength()
java.util.Map<java.lang.Object,T> getTupleAt(int anIndex)
anIndex
. To keep it simple, the keys for the tuples are
plain Object
. Most of the time, it is probably in the form of
Strings.java.lang.IndexOutOfBoundsException
- if no tuple is available at the specified index.void setTupleAt(int anIndex, java.util.Map<java.lang.Object,T> newData)
anIndex
.anIndex
- The index at which the new tuple data is to be set. Should be
valid value - between 0 and getLength()
.newData
- The new values of the tuple to be set. Cannot be null.java.lang.IllegalArgumentException
- if the passed in value is nulljava.lang.IndexOutOfBoundsException
- if the passed in index is invalid.