All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class simset.Head

java.lang.Object
   |
   +----simset.Linkage
           |
           +----simset.Head

public class Head
extends simset.Linkage
This class is used for representing circular two-way lists.

Items in a list are represented by objects of class Link, or more usefully, subclasses of Link.

See Also:
simset.Link, simset.Linkage

Constructor Index

 o Head()

Method Index

 o cardinal()
Returns the number of items currently in this list.
 o clear()
Removes all items from this list.
 o empty()
Tests if this list is empty.
 o first()
Returns the first item in this list.
 o last()
Returns the last item in this list.

Constructors

 o Head
 public Head()

Methods

 o first
 public final simset.Link first()
Returns the first item in this list.

Returns:
The first item.
 o last
 public final simset.Link last()
Returns the last item in this list.

Returns:
The last item.
 o empty
 public final boolean empty()
Tests if this list is empty.

Returns:
true, if this list is empty; false otherwise.
 o cardinal
 public final int cardinal()
Returns the number of items currently in this list.

Returns:
The number of items.
 o clear
 public final void clear()
Removes all items from this list.


All Packages  Class Hierarchy  This Package  Previous  Next  Index