ptolemy.actor.util
Class CalendarQueue.CQCell

java.lang.Object
  extended by ptolemy.actor.util.CalendarQueue.CQCell
Enclosing class:
CalendarQueue

private static class CalendarQueue.CQCell
extends java.lang.Object

Simplified and specialized linked list cell. This is based on Doug Lea's implementation in collections, but with most of the functionality stripped out.


Field Summary
 java.lang.Object contents
          The contents of the cell.
 CalendarQueue.CQCell next
          The next cell in the list, or null if there is none.
 
Constructor Summary
CalendarQueue.CQCell(java.lang.Object contents, CalendarQueue.CQCell next)
          Construct a cell with the specified contents, pointing to the specified next cell.
 
Method Summary
 CalendarQueue.CQCell find(java.lang.Object element)
          Search the list for the specified element (using equals() to identify a match).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contents

public java.lang.Object contents
The contents of the cell.


next

public CalendarQueue.CQCell next
The next cell in the list, or null if there is none.

Constructor Detail

CalendarQueue.CQCell

public CalendarQueue.CQCell(java.lang.Object contents,
                            CalendarQueue.CQCell next)
Construct a cell with the specified contents, pointing to the specified next cell.

Parameters:
contents - The contents.
next - The next cell, or null if this is the end of the list.
Method Detail

find

public final CalendarQueue.CQCell find(java.lang.Object element)
Search the list for the specified element (using equals() to identify a match). Note that this does a linear search starting at the beginning of the list.

Parameters:
element - Element to look for.
Returns:
The cell containing the element, or null if there is none.