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.


Constructor Index

 o CircularList()
creates an empty circular list
 o CircularList(Class, int)
takes class of object to be created and the size of list

Method Index

 o get()
returns the object info and frees it
 o insert(Object)
insert into list
 o set()
returns the object being updated

Constructors

 o 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
 o CircularList
 public CircularList()
creates an empty circular list

Methods

 o insert
 public void insert(Object obj)
insert into list

 o set
 public Object set() throws NullPointerException
returns the object being updated

 o get
 public Object get()
returns the object info and frees it


All Packages  Class Hierarchy  This Package  Previous  Next  Index
1