CHILDTYPE - The type of the children.public interface IHasChildrenSorted<CHILDTYPE> extends IHasChildren<CHILDTYPE>
IHasChildren by indicating that the child items are sorted!| Modifier and Type | Method and Description |
|---|---|
CHILDTYPE |
getChildAtIndex(int nIndex)
Get the child node at the specified index
|
List<? extends CHILDTYPE> |
getChildren() |
CHILDTYPE |
getFirstChild()
Get the first child node or
null if no child is present |
CHILDTYPE |
getLastChild()
Get the last child node or
null if no child is present |
getChildCount, hasChildren@Nullable List<? extends CHILDTYPE> getChildren()
getChildren in interface IHasChildren<CHILDTYPE>null if no
children are present.@Nullable CHILDTYPE getChildAtIndex(@Nonnegative int nIndex)
nIndex - The index to be queried. May not be < 0 or ≥ the number of
childrennull if the index
is invalid.IndexOutOfBoundsException - in case the index is invalid@Nullable CHILDTYPE getFirstChild()
null if no child is presentnull.Copyright © 2006–2014 phloc systems. All rights reserved.