com.softsynth.jmsl.util
Class LinkedList
java.lang.Object
com.softsynth.jmsl.util.LinkedList
public class LinkedList
- extends java.lang.Object
Singly linked list. Used primarily to replace Vector in EventScheduler
where removeElement() would sometimes take a long time
- Author:
- Nick Didkovsky
Method Summary |
void |
addElement(java.lang.Object object)
|
java.lang.Object |
elementAt(int index)
|
java.util.Enumeration |
elements()
|
java.lang.Object |
firstElement()
|
void |
insertElementAt(java.lang.Object object,
int index)
Inserts the specified object as a component in this LinkedList at the specified index. |
static void |
main(java.lang.String[] args)
|
void |
removeElement(java.lang.Object object)
|
int |
size()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LinkedList
public LinkedList()
insertElementAt
public void insertElementAt(java.lang.Object object,
int index)
- Inserts the specified object as a component in this LinkedList at the specified index.
Each component in this LinkedList with an index greater or equal to the specified index is
shifted upward to have an index one greater than the value it had previously.
addElement
public void addElement(java.lang.Object object)
elements
public java.util.Enumeration elements()
removeElement
public void removeElement(java.lang.Object object)
firstElement
public java.lang.Object firstElement()
elementAt
public java.lang.Object elementAt(int index)
size
public int size()
main
public static void main(java.lang.String[] args)