| Modifier and Type | Field and Description |
|---|---|
| private LinkedNode | |
| private final T |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static < Type argument that defines contents of the linked list parameter ST> boolean | Returns: True if linked list contains the value, false otherwiseHead node of the linked list node, ST Value to look for value)Convenience method that can be used to check if a linked list with given head node (which may be null to indicate empty list) contains given value |
| public void | |
| public LinkedNode | |
| public T |
| next | back to summary |
|---|---|
| private LinkedNode<T> next | |
| value | back to summary |
|---|---|
| private final T value | |
| LinkedNode | back to summary |
|---|---|
| public LinkedNode(T value, LinkedNode<T> next) | |
| contains | back to summary |
|---|---|
| public static <ST> boolean contains(LinkedNode<ST> node, ST value) Convenience method that can be used to check if a linked list with given head node (which may be null to indicate empty list) contains given value
| |
| linkNext | back to summary |
|---|---|
| public void linkNext(LinkedNode<T> n) | |
| next | back to summary |
|---|---|
| public LinkedNode | |
| value | back to summary |
|---|---|
| public T value() | |