public interface ObjectArray
Once an object implements this interface
it's easy to build a list on top of it by using
org.netbeans.spi.lexer.util.LexerUtilities#createList(ObjectArray)
.
Modifier and Type | Interface and Description |
---|---|
static interface |
ObjectArray.CopyItems
Interface allowing more efficient getting of the objects
from the object array.
|
static interface |
ObjectArray.Modification |
Modifier and Type | Method and Description |
---|---|
Object |
getItem(int index)
Get the item at the given index.
|
int |
getItemCount() |
Object getItem(int index)
index
- >=0 and <ObjectArray.getItemCount()
index at which the item
should be obtained.IndexOutOfBoundsException
- if the index is <0
or >=ObjectArray.getItemCount()
int getItemCount()