CHILDTYPE - The data type of the child objects.@Immutable public final class ChildrenProviderHasChildrenSorted<CHILDTYPE extends IHasChildrenSorted<CHILDTYPE>> extends ChildrenProviderHasChildren<CHILDTYPE> implements IChildrenProviderSorted<CHILDTYPE>
IChildrenProviderSorted implementation for object implementing the
IHasChildrenSorted interface.| Constructor and Description |
|---|
ChildrenProviderHasChildrenSorted() |
| Modifier and Type | Method and Description |
|---|---|
ICommonsList<? 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, hasChildrenclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChildCount, hasChildren, hasNoChildren@Nullable public ICommonsList<? extends CHILDTYPE> getAllChildren(@Nullable CHILDTYPE aCurrent)
IChildrenProvidergetAllChildren in interface IChildrenProvider<CHILDTYPE extends IHasChildrenSorted<CHILDTYPE>>getAllChildren in interface IChildrenProviderSorted<CHILDTYPE extends IHasChildrenSorted<CHILDTYPE>>getAllChildren in class ChildrenProviderHasChildren<CHILDTYPE extends IHasChildrenSorted<CHILDTYPE>>aCurrent - The object to determine the children of. No null or
non-null constraint possible.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 public CHILDTYPE getChildAtIndex(@Nullable CHILDTYPE aCurrent, @Nonnegative int nIndex)
IChildrenProviderSortedIChildrenProviderSorted.getAllChildren(Object).getChildAtIndex in interface IChildrenProviderSorted<CHILDTYPE extends IHasChildrenSorted<CHILDTYPE>>aCurrent - The object to get the child of. May be null depending
on the concrete implementation.nIndex - The index to retrieve the child at.Copyright © 2014–2019 Philip Helger. All rights reserved.