Package com.helger.commons.hierarchy
Interface IChildrenProviderWithID<KEYTYPE,CHILDTYPE>
- Type Parameters:
KEYTYPE- The key typeCHILDTYPE- the value type
- All Superinterfaces:
IChildrenProvider<CHILDTYPE>
- All Known Implementing Classes:
ChildrenProviderHasChildrenWithID,ChildrenProviderSortingWithID
This interface can be used to generically resolved children of a certain
object.
- Author:
- boris
-
Method Summary
Modifier and TypeMethodDescriptiongetChildWithID(CHILDTYPE aCurrent, KEYTYPE aID) Retrieve the objects with the passed ID ornullif no such object.Methods inherited from interface com.helger.commons.hierarchy.IChildrenProvider
getAllChildren, getChildCount, hasChildren, hasNoChildren
-
Method Details
-
getChildWithID
Retrieve the objects with the passed ID ornullif no such object.- Parameters:
aCurrent- The object to determine the children of. Nonullor non-nullconstraint possible.aID- the ID of the object in question. Nonullor non-nullconstraint possible.- Returns:
- the object with the passed ID or
null
-