Class LinkedNode<T>
- java.lang.Object
-
- com.fasterxml.jackson.databind.util.LinkedNode<T>
-
public final class LinkedNode<T> extends java.lang.Object
Node of a forward-only linked list.
-
-
Constructor Summary
Constructors Constructor Description LinkedNode(T value, LinkedNode<T> next)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 valuevoid
linkNext(LinkedNode<T> n)
LinkedNode<T>
next()
T
value()
-
-
-
Constructor Detail
-
LinkedNode
public LinkedNode(T value, LinkedNode<T> next)
-
-
Method Detail
-
linkNext
public void linkNext(LinkedNode<T> n)
-
next
public LinkedNode<T> next()
-
value
public T value()
-
contains
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- Type Parameters:
ST
- Type argument that defines contents of the linked list parameter- Parameters:
node
- Head node of the linked listvalue
- Value to look for- Returns:
- True if linked list contains the value, false otherwise
-
-