Returns the node at the given index. @param index The index of the node to retrieve @return The node at the given index, or null if out of bounds
(int index)
| 2793 | * @return The node at the given index, or null if out of bounds |
| 2794 | */ |
| 2795 | public Node getNode(int index) { |
| 2796 | Node n = null; |
| 2797 | try { |
| 2798 | n = list.get(index); |
| 2799 | } catch (IndexOutOfBoundsException e) { |
| 2800 | // Ignore |
| 2801 | } |
| 2802 | return n; |
| 2803 | } |
| 2804 | |
| 2805 | /** |
| 2806 | * Returns the root node of this collection. |