Method Summary |
|
public synchronized void | add(Object o) Adds an element at level zero. |
public synchronized void | add(Object o, int level) Adds an element at a given level. |
public synchronized void | clear() Clears the list. |
public Object | clone() Clones the list. |
public synchronized Object | get(int index) Returns the element with the given index.
Parameters: index - the index. |
public Object[] | getElementArrayForLevel(int level, Object[] target) Returns an iterator for all the elements at a given level. |
public Object[] | getElementArrayForLevel(int level) Returns an iterator for all the elements at a given level.
Parameters: level - the level. |
public int | getElementCountForLevel(int level) Returns the numer of elements registered for an certain level. |
protected Iterator | getElementsForLevel(int level) Creates an iterator for the elements in the list at the given level.
Parameters: level - the level. |
public int | getLevel(int index) Returns the level for an element.
Parameters: index - the element index. |
public int | getLevel(Object o) Returns the level of an element.
Parameters: o - the element. |
public synchronized Iterator | getLevelsAscending() Returns an iterator that iterates through the levels in ascending order. |
public synchronized Iterator | getLevelsDescending() Returns an iterator that iterates through the levels in descending order. |
public synchronized Integer[] | getLevelsDescendingArray() Returns the levels of the elements in the list in descending order. |
protected Object[] | getRawElements() Returns all stored objects as object array. |
protected Integer[] | getRawLevels() Returns all active levels as java.lang.Integer array. |
public int | indexOf(Object o) Returns the index of an element.
Parameters: o - the element. |
public void | setLevel(int index, int level) Sets the level for an element. |
public void | setLevel(Object o, int level) Sets the level of an element. |
public int | size() Returns the number of elements in the list. |
public synchronized Object[] | toArray() Returns the elements as an array. |