-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default C
getChild(int index)
Gets the child-object at the givenindex
.default int
getChildCount()
default Iterator<C>
iterator()
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
getChildCount
default int getChildCount()
- Returns:
- the number of contained
children
. - See Also:
getChild(int)
,Collection.size()
-
getChild
default C getChild(int index)
Gets the child-object at the givenindex
.- Parameters:
index
- is the index of the child to get.- Returns:
- the requested child.
- Throws:
IndexOutOfBoundsException
- if the givenindex
is not in the range from0
to
.child-count
- 1- See Also:
List.get(int)
-
-