T
- Type of contained objectpublic final class LinkedNode<T> extends Object
Constructor and Description |
---|
LinkedNode(T value,
LinkedNode<T> next) |
Modifier and Type | Method and Description |
---|---|
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
|
LinkedNode<T> |
next() |
T |
value() |
public LinkedNode(T value, LinkedNode<T> next)
public LinkedNode<T> next()
public T value()
public static <ST> boolean contains(LinkedNode<ST> node, ST value)
ST
- Type argument that defines contents of the linked list parameternode
- Head node of the linked listvalue
- Value to look for