|
JCommon 1.0.17-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.util.AbstractObjectList
public class AbstractObjectList
A list of objects that can grow as required.
Field Summary | |
---|---|
static int |
DEFAULT_INITIAL_CAPACITY
The default initial capacity of the list. |
Constructor Summary | |
---|---|
protected |
AbstractObjectList()
Creates a new list with the default initial capacity. |
protected |
AbstractObjectList(int initialCapacity)
Creates a new list. |
protected |
AbstractObjectList(int initialCapacity,
int increment)
Creates a new list. |
Method Summary | |
---|---|
void |
clear()
Clears the list. |
Object |
clone()
Clones the list of objects. |
boolean |
equals(Object obj)
Tests this list for equality with another object. |
protected Object |
get(int index)
Returns the object at the specified index, if there is one, or null . |
int |
hashCode()
Returns a hash code value for the object. |
protected int |
indexOf(Object object)
Returns the index of the specified object, or -1 if the object is not in the list. |
protected void |
set(int index,
Object object)
Sets an object reference (overwriting any existing object). |
int |
size()
Returns the size of the list. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_INITIAL_CAPACITY
Constructor Detail |
---|
protected AbstractObjectList()
protected AbstractObjectList(int initialCapacity)
initialCapacity
- the initial capacity.protected AbstractObjectList(int initialCapacity, int increment)
initialCapacity
- the initial capacity.increment
- the increment.Method Detail |
---|
protected Object get(int index)
null
.
index
- the object index.
null
.protected void set(int index, Object object)
index
- the object index.object
- the object (null
permitted).public void clear()
public int size()
protected int indexOf(Object object)
object
- the object.
public boolean equals(Object obj)
equals
in class Object
obj
- the object to test.
public int hashCode()
hashCode
in class Object
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
- if an item in the list does not
support cloning.
|
JCommon 1.0.17-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |