public 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
|
void |
linkNext(LinkedNode<T> n) |
LinkedNode<T> |
next() |
T |
value() |
public LinkedNode(T value, LinkedNode<T> next)
public void linkNext(LinkedNode<T> n)
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 forCopyright © 2008–2018 FasterXML. All rights reserved.