Class IntList

java.lang.Object
  extended by IntList
Direct Known Subclasses:
ConsIntList, EmptyIntList

abstract class IntList
extends Object

IntList ::= EmptyIntList | ConsIntList(int, IntList).


Constructor Summary
IntList()
          This method is automatically generated by the Language Level Converter.
 
Method Summary
 IntList cons(int n)
          Adds the int n to the front of this IntList.
 boolean equals(Object o)
          This method is automatically generated by the Language Level Converter.
 int hashCode()
          This method is automatically generated by the Language Level Converter.
abstract  IntList insert(int n)
          Inserts n in proper order in this, assuming this is sorted in ascending order.
abstract  IntList sort()
          Sorts this IntList into ascending (non-descending) order.
 String toString()
          This method is automatically generated by the Language Level Converter.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IntList

public IntList()
This method is automatically generated by the Language Level Converter.

Method Detail

sort

public abstract IntList sort()
Sorts this IntList into ascending (non-descending) order.


cons

public IntList cons(int n)
Adds the int n to the front of this IntList.


insert

public abstract IntList insert(int n)
Inserts n in proper order in this, assuming this is sorted in ascending order.


toString

public String toString()
This method is automatically generated by the Language Level Converter.

Overrides:
toString in class Object

equals

public boolean equals(Object o)
This method is automatically generated by the Language Level Converter.

Overrides:
equals in class Object

hashCode

public int hashCode()
This method is automatically generated by the Language Level Converter.

Overrides:
hashCode in class Object