E
- the type of elements in this listIList<E>
MyLinkedList
public interface ILinkedList<E> extends IList<E>
Modifier and Type | Method | Description |
---|---|---|
void |
addFirst(E e) |
Adds element to head (first) of list
|
void |
addLast(E e) |
Adds element to tail (last) of list
|
java.util.ListIterator<E> |
listIterator() |
Return a
ListIterator for the list |
E |
peek() |
Peeks at element at head (first) of list
|
E |
pop() |
Pops element from head (first) of list
|
void |
push(E e) |
Pushes element onto head (first) of list
|
E |
removeFirst() |
Removes element from head (first) of list
|
E |
removeLast() |
Removes element from tail (last) of list
|
void addFirst(E e)
e
- the new elementvoid addLast(E e)
e
- the new elementE removeFirst()
E removeLast()
void push(E e)
e
- the new elementE pop()
E peek()
java.util.ListIterator<E> listIterator()
ListIterator
for the listListIterator
for the list