| java.lang.Object org.jfree.util.AbstractObjectList org.jfree.util.ObjectList
ObjectList | public class ObjectList extends AbstractObjectList (Code) | | A list of objects that can grow as required.
When cloning, the objects in the list are NOT cloned, only the references.
author: Thomas Morgner |
Constructor Summary | |
public | ObjectList() Default constructor. | public | ObjectList(int initialCapacity) Creates a new list. |
Method Summary | |
public Object | get(int index) Returns the object at the specified index, if there is one, or null . | public int | indexOf(Object object) Returns the index of the specified object, or -1 if the object is not in the list. | public void | set(int index, Object object) Sets an object reference (overwriting any existing object). |
ObjectList | public ObjectList()(Code) | | Default constructor.
|
ObjectList | public ObjectList(int initialCapacity)(Code) | | Creates a new list.
Parameters: initialCapacity - the initial capacity. |
get | public Object get(int index)(Code) | | Returns the object at the specified index, if there is one, or null .
Parameters: index - the object index. The object or null . |
indexOf | public int indexOf(Object object)(Code) | | Returns the index of the specified object, or -1 if the object is not in the list.
Parameters: object - the object. The index or -1. |
set | public void set(int index, Object object)(Code) | | Sets an object reference (overwriting any existing object).
Parameters: index - the object index. Parameters: object - the object (null permitted). |
Fields inherited from org.jfree.util.AbstractObjectList | final public static int DEFAULT_INITIAL_CAPACITY(Code)(Java Doc)
|
|
|