Class EmptyIntList
java.lang.Object
IntList
EmptyIntList
class EmptyIntList
- extends IntList
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. |
ONLY
public static final EmptyIntList ONLY
EmptyIntList
private EmptyIntList()
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