Interface IChildrenProviderWithID<KEYTYPE,CHILDTYPE>

Type Parameters:
KEYTYPE - The key type
CHILDTYPE - 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 Details

    • getChildWithID

      @Nullable CHILDTYPE getChildWithID(CHILDTYPE aCurrent, KEYTYPE aID)
      Retrieve the objects with the passed ID or null if no such object.
      Parameters:
      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.
      Returns:
      the object with the passed ID or null