|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ReadableList
Provides array-like read access to a collection of object elements.
| Method Summary | ||
|---|---|---|
Object |
getAt(int index)
Retrieves element by index. |
|
int |
getAt(int index,
int count,
Object[] elements,
int destIndex)
Retrieves range of elements starting at provided index. |
|
int |
getIndex(Object element)
Retrieves index by element. |
|
int |
size()
Retrieves the number of elements in this collection. |
|
| Method Detail |
|---|
int size()
Object getAt(int index)
index - Index of the element to retrieve.
ArrayIndexOutOfBoundsException - If index parameter is not valid.
int getAt(int index,
int count,
Object[] elements,
int destIndex)
index - Index of first element to retrieve.count - Number of elements to retrieve.elements - Object array to contain returned elements; this array must
have enough space to hold the number of elements you expect to receive.destIndex - Index within destination array to contain the first
element retrieved (the destination array must therefore be at least
destIndex + count elements long).
ArrayIndexOutOfBoundsException - If index parameter is not valid.int getIndex(Object element)
Note: this operation may be linear with respect to the number of elements in the list.
element - Element to locate.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2010 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.