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
public interface IChildrenProviderWithID<KEYTYPE,CHILDTYPE> extends IChildrenProvider<CHILDTYPE>
This interface can be used to generically resolved children of a certain object.- Author:
- boris
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CHILDTYPEgetChildWithID(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 Detail
-
getChildWithID
@Nullable CHILDTYPE getChildWithID(CHILDTYPE aCurrent, KEYTYPE aID)
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
-
-