Class ConsIntList

java.lang.Object
  extended by IntList
      extended by ConsIntList

 class ConsIntList
extends IntList


Field Summary
private  int first
          The first element of this IntList.
private  IntList rest
          The remaining elements of this IntList.
 
Constructor Summary
ConsIntList(int first, IntList rest)
          This method is automatically generated by the Language Level Converter.
 
Method Summary
 boolean equals(Object o)
          This method is automatically generated by the Language Level Converter.
 int first()
          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 rest()
          This method is automatically generated by the Language Level Converter.
 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

first

private final int first
The first element of this IntList.


rest

private final IntList rest
The remaining elements of this IntList.

Constructor Detail

ConsIntList

public ConsIntList(int first,
                   IntList rest)
This method is automatically generated by the Language Level Converter.

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

first

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


rest

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


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