| java.lang.Object org.jfree.util.AbstractObjectList
All known Subclasses: org.jfree.util.BooleanList, org.jfree.util.StrokeList, org.jfree.util.ShapeList, org.jfree.util.PaintList, org.jfree.util.ObjectList,
AbstractObjectList | public class AbstractObjectList implements Cloneable,Serializable(Code) | | A list of objects that can grow as required.
author: David Gilbert |
Method Summary | |
public void | clear() Clears the list. | public Object | clone() Clones the list of objects. | public boolean | equals(Object obj) Tests this list for equality with another object.
Parameters: obj - the object to test. | protected Object | get(int index) Returns the object at the specified index, if there is one, or
null .
Parameters: index - the object index. | public 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.
Parameters: object - the object. | protected void | set(int index, Object object) Sets an object reference (overwriting any existing object). | public int | size() Returns the size of the list. |
DEFAULT_INITIAL_CAPACITY | final public static int DEFAULT_INITIAL_CAPACITY(Code) | | The default initial capacity of the list.
|
AbstractObjectList | protected AbstractObjectList()(Code) | | Creates a new list with the default initial capacity.
|
AbstractObjectList | protected AbstractObjectList(int initialCapacity)(Code) | | Creates a new list.
Parameters: initialCapacity - the initial capacity. |
AbstractObjectList | protected AbstractObjectList(int initialCapacity, int increment)(Code) | | Creates a new list.
Parameters: initialCapacity - the initial capacity. Parameters: increment - the increment. |
clear | public void clear()(Code) | | Clears the list.
|
equals | public boolean equals(Object obj)(Code) | | Tests this list for equality with another object.
Parameters: obj - the object to test. A boolean. |
get | protected 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 . |
hashCode | public int hashCode()(Code) | | Returns a hash code value for the object.
the hashcode |
indexOf | protected 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 | protected 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). |
size | public int size()(Code) | | Returns the size of the list.
The size of the list. |
|
|