站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

ObjectArray (Editor Library) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.editor.lib/1 1.14.0 3

org.netbeans.editor
Interface ObjectArray

All Known Implementing Classes:
GapObjectArray

public interface ObjectArray

Interface that allows to bridge various implementations of the arrays of objects (especially gap arrays).

Once an object implements this interface it's easy to build a list on top of it by using util.LexerUtilities.


Nested Class Summary
static interface ObjectArray.CopyItems
          Interface allowing more efficient getting of the objects from the object array.
static interface ObjectArray.Modification
           
 
Method Summary
 Object getItem(int index)
          Get the item at the given index.
 int getItemCount()
           
 

Method Detail

getItem

Object getItem(int index)
Get the item at the given index.

Parameters:
index - >=0 and <getItemCount() index at which the item should be obtained.
Returns:
the item at the requested index.
Throws:
IndexOutOfBoundsException - if the index is <0 or >=getItemCount()

getItemCount

int getItemCount()
Returns:
>=0 Number of items in the object array.

org.netbeans.modules.editor.lib/1 1.14.0 3

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.