CHILDTYPE - The type of the children to retrieve.public interface IChildrenProviderSorted<CHILDTYPE> extends IChildrenProvider<CHILDTYPE>
| Modifier and Type | Method and Description |
|---|---|
List<? extends CHILDTYPE> |
getAllChildren(CHILDTYPE aCurrent)
Get the children of the passed object.
|
CHILDTYPE |
getChildAtIndex(CHILDTYPE aCurrent,
int nIndex)
Get the child of the passed object at the given index.
|
getChildCount, hasChildren@Nullable List<? extends CHILDTYPE> getAllChildren(@Nullable CHILDTYPE aCurrent)
getAllChildren in interface IChildrenProvider<CHILDTYPE>aCurrent - The object to determine the children of. May be null
depending on the concrete implementation.null if there are no children.
If null is passed, the resolver is expected to return
any possible top level (root) elements. This method may NOT return
null if the call to IChildrenProvider.hasChildren(Object) with
the same object returned true.@Nullable CHILDTYPE getChildAtIndex(@Nullable CHILDTYPE aCurrent, @Nonnegative int nIndex)
getAllChildren(Object).aCurrent - The object to get the child of. May be null depending
on the concrete implementation.nIndex - The index to retrieve the child at.IndexOutOfBoundsException - in case the specified index is invalid.Copyright © 2014–2016 Philip Helger. All rights reserved.