Interface LinkedList<E>
-
- All Known Implementing Classes:
EmptyList,LinkedListImpl
public interface LinkedList<E>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddHead(E e)voidaddTail(E e)voidclear()voidclearID()voidforEach(Consumer<E> consumer)Eget(int position)LinkedListIterator<E>iterator()Epeek()Epoll()EremoveWithID(String listID, long id)you need to callsetNodeStore(NodeStore)before you are able to call this method.voidsetNodeStore(NodeStore<E> store)this makes possibl to useremoveWithID(String, long)intsize()
-
-
-
Method Detail
-
addHead
void addHead(E e)
-
addTail
void addTail(E e)
-
get
E get(int position)
-
poll
E poll()
-
peek
E peek()
-
iterator
LinkedListIterator<E> iterator()
-
clear
void clear()
-
size
int size()
-
clearID
void clearID()
-
setNodeStore
void setNodeStore(NodeStore<E> store)
this makes possibl to useremoveWithID(String, long)
-
removeWithID
E removeWithID(String listID, long id)
you need to callsetNodeStore(NodeStore)before you are able to call this method.
-
-