org.jfree.util
public class AbstractObjectList extends Object implements Cloneable, Serializable
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.
|
Parameters: initialCapacity the initial capacity.
Parameters: initialCapacity the initial capacity. increment the increment.
Returns: A clone.
Throws: CloneNotSupportedException if an item in the list does not support cloning.
Parameters: obj the object to test.
Returns: A boolean.
null
.
Parameters: index the object index.
Returns: The object or null
.
Returns: the hashcode
Parameters: object the object.
Returns: The index or -1.
Parameters: index the object index. object the object (null
permitted).
Returns: The size of the list.