KEYTYPE - The key type.CHILDTYPE - The data type of the child objects.public class ChildrenProviderSortingWithID<KEYTYPE,CHILDTYPE> extends ChildrenProviderSorting<CHILDTYPE> implements IChildrenProviderWithID<KEYTYPE,CHILDTYPE>
IChildrenProviderWithID with ID that returns the children in
ChildrenProviderSorting.getAllChildren(Object) sorted.| Constructor and Description |
|---|
ChildrenProviderSortingWithID(IChildrenProviderWithID<KEYTYPE,CHILDTYPE> aCP,
Comparator<? super CHILDTYPE> aComparator) |
| Modifier and Type | Method and Description |
|---|---|
IChildrenProviderWithID<KEYTYPE,CHILDTYPE> |
getChildrenProvider() |
CHILDTYPE |
getChildWithID(CHILDTYPE aCurrent,
KEYTYPE aID)
Retrieve the objects with the passed ID or
null if no such
object. |
getAllChildren, getChildCount, getComparator, hasChildrenclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAllChildren, getChildCount, hasChildren, hasNoChildrenpublic ChildrenProviderSortingWithID(@Nonnull IChildrenProviderWithID<KEYTYPE,CHILDTYPE> aCP, @Nonnull Comparator<? super CHILDTYPE> aComparator)
@Nonnull public IChildrenProviderWithID<KEYTYPE,CHILDTYPE> getChildrenProvider()
getChildrenProvider in class ChildrenProviderSorting<CHILDTYPE>@Nullable public CHILDTYPE getChildWithID(@Nullable CHILDTYPE aCurrent, @Nullable KEYTYPE aID)
IChildrenProviderWithIDnull if no such
object.getChildWithID in interface IChildrenProviderWithID<KEYTYPE,CHILDTYPE>aCurrent - The object to determine the children of. No null or
non- null constraint possible.aID - the ID of the object in question. No null or non-
null constraint possible.nullCopyright © 2014–2017 Philip Helger. All rights reserved.