|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ListAccess<E>
A Service Provider Interface for a list access.
| Method Summary | |
|---|---|
int |
getSize()
Returns the list size. |
E[] |
load(int index,
int length)
Retrieves an array of object from the list. |
| Method Detail |
|---|
E[] load(int index,
int length)
throws java.lang.Exception,
java.lang.IllegalArgumentException
Retrieves an array of object from the list. The returned array size is expected to be equals to the length argument.
The index value and the lenght value cannot be negative, and the sum of the index and the length cannot be greater than the list size. Those values are considered as non correct.
index - the indexlength - the limit
java.lang.Exception - any exception that would prevent access to the list
java.lang.IllegalArgumentException - if the index value or the length value are not correct
int getSize()
throws java.lang.Exception
java.lang.Exception - any exception that would prevent access to the list
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||