(final int index)
| 100 | } |
| 101 | |
| 102 | public String get(final int index) { |
| 103 | if(index == depth) { |
| 104 | return component; |
| 105 | } else if(index > depth) { |
| 106 | throw new IllegalArgumentException("index out-of-bounds"); |
| 107 | } else { |
| 108 | return parent.get(index); |
| 109 | } |
| 110 | } |
| 111 | |
| 112 | public Path toPath() { |
| 113 | if(parent == null) { |