Package edu.uky.ai.io
Class List
java.lang.Object
edu.uky.ai.io.Node
edu.uky.ai.io.List
A list is a collection of 0 to many nodes.
- Author:
- Stephen G. Ware
-
Field Details
-
length
public final int lengthThe number of elements in this list -
first
The first elerment in this list
-
-
Method Details
-
requireFirst
Returns the first element in the list or throws an exception if no such element exists.- Returns:
- the first element
- Throws:
FormatException
- if the list does not have a first element
-
toString
-