Class EmptyIntList

java.lang.Object
  extended by IntList
      extended by EmptyIntList

 class EmptyIntList
extends IntList


Field Summary
static EmptyIntList ONLY
           
 
Constructor Summary
private EmptyIntList()
           
 
Method Summary
 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.
 IntList insert(int n)
          Inserts n in proper order in this, assuming this is sorted in ascending order.
 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 IntList
cons
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ONLY

public static final EmptyIntList ONLY
Constructor Detail

EmptyIntList

private EmptyIntList()
Method Detail

sort

public IntList sort()
Description copied from class: IntList
Sorts this IntList into ascending (non-descending) order.

Specified by:
sort in class IntList

insert

public IntList insert(int n)
Description copied from class: IntList
Inserts n in proper order in this, assuming this is sorted in ascending order.

Specified by:
insert in class IntList

toString

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

Overrides:
toString in class IntList

equals

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

Overrides:
equals in class IntList

hashCode

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

Overrides:
hashCode in class IntList