Node - ViiSE/papka GitHub Wiki

Node

Interface:

public interface Node<T> {
    List<T> children();
}

Methods

List<T> children() - return all children of this node.

Implementations

No implementations.

Extends

Folder<T> - interface of folder.

Description

Each tree folder filesystem has a node. In our case, folder is a node that has children and does not have a parent.

It's necessary to separate such entities as Folder and Node: in filesystems folder is a node, but in different cases folder may not be a node.