Returns the number of child elements (excluding the root). @return the number of children
()
| 248 | * @return the number of children |
| 249 | */ |
| 250 | public int children() { |
| 251 | int size = size(); |
| 252 | if (size > 1) { |
| 253 | return size - 1; |
| 254 | } |
| 255 | return 0; |
| 256 | } |
| 257 | |
| 258 | /** |
| 259 | * Returns the element at the specified index, or {@code null} if not found. |
no test coverage detected