public class LinkedList<T>
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
LinkedList.Node<T> |
| Constructor and Description |
|---|
LinkedList() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
empty()
Time complexity: Θ(1)
|
LinkedList.Node<T> |
head() |
void |
insertFront(T value)
Time complexity: Θ(1)
|
T |
removeFront()
Time complexity: Θ(1)
|
int |
size() |
public void insertFront(T value)
public boolean empty()
public T removeFront() throws java.lang.Exception
java.lang.Exceptionpublic LinkedList.Node<T> head()
public int size()