|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jfree.util.AbstractObjectList
org.jfree.util.ObjectList
public class ObjectList
A list of objects that can grow as required.
When cloning, the objects in the list are NOT cloned, only the references.
| Field Summary |
|---|
| Fields inherited from class org.jfree.util.AbstractObjectList |
|---|
DEFAULT_INITIAL_CAPACITY |
| Constructor Summary | |
|---|---|
ObjectList()
Default constructor. |
|
ObjectList(int initialCapacity)
Creates a new list. |
|
| Method Summary | |
|---|---|
java.lang.Object |
get(int index)
Returns the object at the specified index, if there is one, or null. |
int |
indexOf(java.lang.Object object)
Returns the index of the specified object, or -1 if the object is not in the list. |
void |
set(int index,
java.lang.Object object)
Sets an object reference (overwriting any existing object). |
| Methods inherited from class org.jfree.util.AbstractObjectList |
|---|
clear, clone, equals, hashCode, size |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ObjectList()
public ObjectList(int initialCapacity)
initialCapacity - the initial capacity.| Method Detail |
|---|
public java.lang.Object get(int index)
null.
get in class AbstractObjectListindex - the object index.
null.
public void set(int index,
java.lang.Object object)
set in class AbstractObjectListindex - the object index.object - the object (null permitted).public int indexOf(java.lang.Object object)
indexOf in class AbstractObjectListobject - the object.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||