All Packages Class Hierarchy This Package Previous Next Index
Class magician.PerfTools.CircularList
java.lang.Object
|
+----magician.PerfTools.CircularList
- public class CircularList
- extends Object
CircularList is implemented by maintaining 2 pointers, get and put
which point to the next allocated and free nodes on the list, respectively. The class
also provides interfaces to insert, remove and print its contents.
-
CircularList()
- creates an empty circular list
-
CircularList(Class, int)
- takes class of object to be created and the size of list
-
get()
- returns the object info and frees it
-
insert(Object)
- insert into list
-
set()
- returns the object being updated
CircularList
public CircularList(Class objClass,
int size)
- takes class of object to be created and the size of list
- Parameters:
- objClass - create nodes of instances of this class
- size - initial size of list
CircularList
public CircularList()
- creates an empty circular list
insert
public void insert(Object obj)
- insert into list
set
public Object set() throws NullPointerException
- returns the object being updated
get
public Object get()
- returns the object info and frees it
All Packages Class Hierarchy This Package Previous Next Index