All Packages Class Hierarchy This Package Previous Next Index
Class jDisco.Head
java.lang.Object
|
+----jDisco.Linkage
|
+----jDisco.Head
- public class Head
- extends jDisco.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:
- jDisco.Link, jDisco.Linkage
-
Head()
-
-
cardinal()
- Returns the number of items currently in this list.
-
clear()
- Removes all items from this list.
-
empty()
- Tests if this list is empty.
-
first()
- Returns the first item in this list.
-
last()
- Returns the last item in this list.
Head
public Head()
first
public final jDisco.Link first()
- Returns the first item in this list.
last
public final jDisco.Link last()
- Returns the last item in this list.
empty
public final boolean empty()
- Tests if this list is empty.
- Returns:
- true, if this list is empty; false otherwise.
cardinal
public final int cardinal()
- Returns the number of items currently in this list.
clear
public final void clear()
- Removes all items from this list.
All Packages Class Hierarchy This Package Previous Next Index