AbsractNodeItem: constructor children must not be null
This commit is contained in:
parent
4770a99983
commit
afdaa082cc
1 changed files with 8 additions and 0 deletions
|
@ -49,6 +49,14 @@ abstract class AbstractNodeItem<T> implements Node<T> {
|
||||||
|
|
||||||
private Node<T> parent;
|
private Node<T> parent;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor.
|
||||||
|
*
|
||||||
|
* @param data the data of the node
|
||||||
|
* @param name the name of the node
|
||||||
|
* @param parent the parent of the node, or null for a root node
|
||||||
|
* @param children the children of the node - must not be null
|
||||||
|
*/
|
||||||
protected AbstractNodeItem(
|
protected AbstractNodeItem(
|
||||||
final T data, final String name, final Node<T> parent, @NonNull final Set<Node<T>> children
|
final T data, final String name, final Node<T> parent, @NonNull final Set<Node<T>> children
|
||||||
) {
|
) {
|
||||||
|
|
Loading…
Reference in a new issue