/** * Initializes a {@link Tree tree} by a given root data. The data will be used to initialize a root {@link Node * node}. * * @param rootData * - data for the root {@link Node node} */ public Tree(T rootData) { root = new Node<T>(rootData); }
boolean visibleOnly) { if (nodeInfo == null) { return new Node<AccessibilityElement>(null); return new Node<AccessibilityElement>(null); AccessibilityElement elementData = accessibilityElementBuilder.build(nodeInfo, index); Node<AccessibilityElement> builtNode = new Node<AccessibilityElement>(elementData);