public class NEList extends java.lang.Object implements IList
| Modifier and Type | Field and Description | 
|---|---|
| private java.lang.Object | _firstThe first data element. | 
| private IList | _restThe rest or "tail" of this NEList. | 
| Constructor and Description | 
|---|
| NEList(java.lang.Object f,
      IList r)Initializes this NEList to a given first and a given rest. | 
| Modifier and Type | Method and Description | 
|---|---|
| java.lang.Object | execute(IListAlgo algo,
       java.lang.Object... inp)Calls the nonEmptyCase method of the IListAlgo parameter, passing to this
 method itself as the host parameter and the given input as the input
 parameter. | 
| java.lang.Object | getFirst()Returns the first data element of this NEList. | 
| IList | getRest()Returns the first data element of this NEList. | 
| java.lang.String | toString() | 
private java.lang.Object _first
private IList _rest
public NEList(java.lang.Object f,
      IList r)
f - the first element of this NEList.r - != null, the rest of this NEList.public final java.lang.Object getFirst()
public final IList getRest()
public final java.lang.Object execute(IListAlgo algo, java.lang.Object... inp)
public java.lang.String toString()
toString in class java.lang.Object