|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectIntList
ConsIntList
class ConsIntList
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 |
---|
private final int first
private final IntList rest
Constructor Detail |
---|
public ConsIntList(int first, IntList rest)
Method Detail |
---|
public IntList sort()
IntList
sort
in class IntList
public IntList insert(int n)
IntList
insert
in class IntList
public int first()
public IntList rest()
public String toString()
toString
in class IntList
public boolean equals(Object o)
equals
in class IntList
public int hashCode()
hashCode
in class IntList
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |