|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.AbstractSequentialList
sleep.engine.types.MyLinkedList
public class MyLinkedList
| Field Summary |
|---|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
MyLinkedList()
|
|
| Method Summary | |
|---|---|
void |
add(int index,
java.lang.Object element)
add an object to the list at the specified index |
boolean |
add(java.lang.Object o)
add an object to the list |
void |
checkSafety()
|
java.lang.Object |
get(int index)
get an object from the linked list |
java.util.ListIterator |
listIterator(int index)
|
java.lang.Object |
remove(int index)
remove an object at the specified index |
int |
size()
|
java.util.List |
subList(int beginAt,
int endAt)
|
| Methods inherited from class java.util.AbstractSequentialList |
|---|
addAll, iterator, set |
| Methods inherited from class java.util.AbstractList |
|---|
clear, equals, hashCode, indexOf, lastIndexOf, listIterator, removeRange |
| Methods inherited from class java.util.AbstractCollection |
|---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, remove, removeAll, retainAll, set, toArray, toArray |
| Constructor Detail |
|---|
public MyLinkedList()
| Method Detail |
|---|
public int size()
size in interface java.util.Collectionsize in interface java.util.Listsize in class java.util.AbstractCollection
public java.util.List subList(int beginAt,
int endAt)
subList in interface java.util.ListsubList in class java.util.AbstractListpublic boolean add(java.lang.Object o)
add in interface java.util.Collectionadd in interface java.util.Listadd in class java.util.AbstractList
public void add(int index,
java.lang.Object element)
add in interface java.util.Listadd in class java.util.AbstractSequentialListpublic java.lang.Object get(int index)
get in interface java.util.Listget in class java.util.AbstractSequentialListpublic java.lang.Object remove(int index)
remove in interface java.util.Listremove in class java.util.AbstractSequentialListpublic java.util.ListIterator listIterator(int index)
listIterator in interface java.util.ListlistIterator in class java.util.AbstractSequentialListpublic void checkSafety()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||