- Type Parameters:
C- type of the children. Should typically be the sub-type implementing this interface itself.
- All Superinterfaces:
Iterable<C>
Interface for an object that may contain
children.- Since:
- 1.0.0
-
Method Summary
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
getChildCount
int getChildCount()- Returns:
- the number of contained
children. - See Also:
-
getChild
Gets the child-object at the givenindex.- Parameters:
index- is the index of the child to get.- Returns:
- the requested child or
nullif no such child exists because the givenindexis not in the range from0to.child-count- 1 - See Also:
-
iterator
-