Class SimpleLinkedList<E>
java.lang.Object
ch.nolix.base.foundation.linkedlist.SimpleLinkedList<E>
- Type Parameters:
E- the type of the elements of aSimpleLinkedList
- All Implemented Interfaces:
ISimpleLinkedList<E>, Iterable<E>
- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclear()static String[]static <T> SimpleLinkedList<T> static <T> SimpleLinkedList<T> fromArray(T[] array) intbooleanisEmpty()iterator()voidstatic <T> SimpleLinkedList<T> withElements(Iterable<T> elements) static <T> SimpleLinkedList<T> withElements(T... elements) Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Method Details
-
createArrayFromList
-
createEmpty
-
fromArray
-
withElements
-
withElements
-
addAtEnd
- Specified by:
addAtEndin interfaceISimpleLinkedList<E>
-
clear
public void clear()- Specified by:
clearin interfaceISimpleLinkedList<E>
-
getElementCount
public int getElementCount()- Specified by:
getElementCountin interfaceISimpleLinkedList<E>
-
getStoredFirst
- Specified by:
getStoredFirstin interfaceISimpleLinkedList<E>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceISimpleLinkedList<E>
-
iterator
-
removeFirst
public void removeFirst()- Specified by:
removeFirstin interfaceISimpleLinkedList<E>
-