sleep.engine.types
Class MyLinkedList
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.AbstractSequentialList
sleep.engine.types.MyLinkedList
- All Implemented Interfaces:
- Serializable, Cloneable, Iterable, Collection, List
public class MyLinkedList
- extends AbstractSequentialList
- implements Cloneable, Serializable, List
- See Also:
- Serialized Form
| 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 |
MyLinkedList
public MyLinkedList()
size
public int size()
- Specified by:
size in interface Collection- Specified by:
size in interface List- Specified by:
size in class AbstractCollection
subList
public List subList(int beginAt,
int endAt)
- Specified by:
subList in interface List- Overrides:
subList in class AbstractList
add
public boolean add(Object o)
- add an object to the list
- Specified by:
add in interface Collection- Specified by:
add in interface List- Overrides:
add in class AbstractList
add
public void add(int index,
Object element)
- add an object to the list at the specified index
- Specified by:
add in interface List- Overrides:
add in class AbstractSequentialList
get
public Object get(int index)
- get an object from the linked list
- Specified by:
get in interface List- Overrides:
get in class AbstractSequentialList
remove
public Object remove(int index)
- remove an object at the specified index
- Specified by:
remove in interface List- Overrides:
remove in class AbstractSequentialList
listIterator
public ListIterator listIterator(int index)
- Specified by:
listIterator in interface List- Specified by:
listIterator in class AbstractSequentialList
checkSafety
public void checkSafety()