|
|||||||||
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.Collection
size
in interface java.util.List
size
in class java.util.AbstractCollection
public java.util.List subList(int beginAt, int endAt)
subList
in interface java.util.List
subList
in class java.util.AbstractList
public boolean add(java.lang.Object o)
add
in interface java.util.Collection
add
in interface java.util.List
add
in class java.util.AbstractList
public void add(int index, java.lang.Object element)
add
in interface java.util.List
add
in class java.util.AbstractSequentialList
public java.lang.Object get(int index)
get
in interface java.util.List
get
in class java.util.AbstractSequentialList
public java.lang.Object remove(int index)
remove
in interface java.util.List
remove
in class java.util.AbstractSequentialList
public java.util.ListIterator listIterator(int index)
listIterator
in interface java.util.List
listIterator
in class java.util.AbstractSequentialList
public void checkSafety()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |