Top Description Fields Constructors Methods
com.fasterxml.jackson.databind.util

public final Class LinkedNode<T>

extends Object
Class Inheritance

Node of a forward-only linked list.
Author
tatu

Field Summary

Modifier and TypeField and Description
private LinkedNode<T>
private final T

Constructor Summary

AccessConstructor and Description
public
LinkedNode(T value, LinkedNode<T> next)

Method Summary

Modifier and TypeMethod 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 otherwise
contains
(LinkedNode<ST>
Head 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<T>
next()

public T
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

nextback to summary
private LinkedNode<T> next
valueback to summary
private final T value

Constructor Detail

LinkedNodeback to summary
public LinkedNode(T value, LinkedNode<T> next)

Method Detail

containsback 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

Parameters
<ST>
Type argument that defines contents of the linked list parameter
node:LinkedNode<ST>

Head node of the linked list

value:ST

Value to look for

Returns:boolean

True if linked list contains the value, false otherwise

linkNextback to summary
public void linkNext(LinkedNode<T> n)
nextback to summary
public LinkedNode<T> next()
valueback to summary
public T value()